mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 13:10:10 +01:00
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:
parent
0e943bc3f2
commit
bc773b795c
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue