nir/samplers: don't zero samplers_used/txf.
authorDave Airlie <airlied@redhat.com>
Fri, 29 Nov 2019 00:56:05 +0000 (10:56 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 1 Dec 2019 23:15:55 +0000 (09:15 +1000)
commit3e21e17b2fecad442fa649f61b6511504596d2ec
tree9a629db648dcc9d6671e93a0b2d08c361eff007b
parent0eb78a078e898e7d5a1425f82513293f9e68e86b
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 <marek.olsak@amd.com>
src/compiler/glsl/gl_nir_lower_samplers_as_deref.c