nir/lower_texcoord_replace: Flag SYSTEM_VALUE_POINT_COORD read when we load it.
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22950>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user