projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eb78a0
)
nir/samplers: don't zero samplers_used/txf.
author
Dave Airlie
<airlied@redhat.com>
Fri, 29 Nov 2019 00:56:05 +0000
(10:56 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Sun, 1 Dec 2019 23:15:55 +0000
(09:15 +1000)
This allows this pass to be run multiple times and the results are
just or'ed together.
It fixes on test on llvmpipe nir, and regresses none.
Suggested by Kenneth
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
b/src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
index 3c8ef4f0521b27742d395d779e2f7fcd5bd60781..d949e3d78f56d6854bed8c57e6459c3107727a35 100644
(file)
--- a/
src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
+++ b/
src/compiler/glsl/gl_nir_lower_samplers_as_deref.c
@@
-328,9
+328,6
@@
gl_nir_lower_samplers_as_deref(nir_shader *shader,
state.remap_table = _mesa_hash_table_create(NULL, _mesa_key_hash_string,
_mesa_key_string_equal);
- shader->info.textures_used = 0;
- shader->info.textures_used_by_txf = 0;
-
nir_foreach_function(function, shader) {
if (function->impl)
progress |= lower_impl(function->impl, &state);