diff options
author | Dave Airlie <[email protected]> | 2019-11-29 10:56:05 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2019-12-02 09:15:55 +1000 |
commit | 3e21e17b2fecad442fa649f61b6511504596d2ec (patch) | |
tree | 9a629db648dcc9d6671e93a0b2d08c361eff007b /src/compiler | |
parent | 0eb78a078e898e7d5a1425f82513293f9e68e86b (diff) |
nir/samplers: don't zero samplers_used/txf.
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 <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/glsl/gl_nir_lower_samplers_as_deref.c | 3 |
1 files changed, 0 insertions, 3 deletions
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 3c8ef4f0521..d949e3d78f5 100644 --- 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); |