Commit 3e21e17b authored by Dave Airlie's avatar Dave Airlie

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: default avatarMarek Olšák <>
parent 0eb78a07
Pipeline #84341 passed with stages
in 12 minutes and 51 seconds
......@@ -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,
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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment