projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e943bc
)
nir/lower_texcoord_replace: Flag SYSTEM_VALUE_POINT_COORD read when we load it.
author
Emma Anholt
<emma@anholt.net>
Mon, 8 May 2023 20:56:17 +0000
(13:56 -0700)
committer
Marge Bot
<emma+marge@anholt.net>
Thu, 1 Jun 2023 22:27:08 +0000
(22:27 +0000)
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22950>
src/compiler/nir/nir_lower_texcoord_replace.c
patch
|
blob
|
history
diff --git
a/src/compiler/nir/nir_lower_texcoord_replace.c
b/src/compiler/nir/nir_lower_texcoord_replace.c
index
7f78f93
..
1b3cebe
100644
(file)
--- 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,