From bc773b795cf8e65eb7f95e72516b161ecbee416a Mon Sep 17 00:00:00 2001 From: Emma Anholt Date: Mon, 8 May 2023 13:56:17 -0700 Subject: [PATCH] nir/lower_texcoord_replace: Flag SYSTEM_VALUE_POINT_COORD read when we load it. Reviewed-by: Alyssa Rosenzweig Part-of: --- src/compiler/nir/nir_lower_texcoord_replace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/nir/nir_lower_texcoord_replace.c b/src/compiler/nir/nir_lower_texcoord_replace.c index 7f78f93..1b3cebe7 100644 --- a/src/compiler/nir/nir_lower_texcoord_replace.c +++ b/src/compiler/nir/nir_lower_texcoord_replace.c @@ -72,6 +72,7 @@ nir_lower_texcoord_replace_impl(nir_function_impl *impl, if (point_coord_is_sysval) { new_coord = nir_load_system_value(&b, nir_intrinsic_load_point_coord, 0, 2, 32); + BITSET_SET(b.shader->info.system_values_read, SYSTEM_VALUE_POINT_COORD); } else { /* find or create pntc */ nir_variable *pntc = nir_get_variable_with_location(b.shader, nir_var_shader_in, -- 2.7.4