microsoft/spirv_to_dxil: turn sysvals into input varyings
Fixes: b47090c5b3 ("spirv: Always declare FragCoord as a sysval")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13276>
This commit is contained in:
@@ -194,6 +194,12 @@ spirv_to_dxil(const uint32_t *words, size_t word_count,
|
||||
nir_validate_shader(nir,
|
||||
"Validate before feeding NIR to the DXIL compiler");
|
||||
|
||||
const struct nir_lower_sysvals_to_varyings_options sysvals_to_varyings = {
|
||||
.frag_coord = true,
|
||||
.point_coord = true,
|
||||
};
|
||||
NIR_PASS_V(nir, nir_lower_sysvals_to_varyings, &sysvals_to_varyings);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_system_values);
|
||||
|
||||
if (conf->zero_based_vertex_instance_id) {
|
||||
|
||||
Reference in New Issue
Block a user