i965: Drop unnecessary 'and' with prog->SamplerUnits

textures_used_by_txf is a subset of textures_used which is a subset
of prog->SamplerUnits.  This should do nothing.

Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Kenneth Graunke 2019-02-10 19:50:37 -08:00
parent f5c7df4dc9
commit 59ae985631
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ mark_textures_used_for_txf(BITSET_WORD *used_for_txf,
if (!prog)
return;
unsigned mask = prog->SamplersUsed & prog->info.textures_used_by_txf;
uint32_t mask = prog->info.textures_used_by_txf;
while (mask) {
int s = u_bit_scan(&mask);
BITSET_SET(used_for_txf, prog->SamplerUnits[s]);