i965: Drop unnecessary 'and' with prog->SamplerUnits
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Feb 2019 03:50:37 +0000 (19:50 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Feb 2019 05:34:48 +0000 (21:34 -0800)
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>
src/mesa/drivers/dri/i965/brw_draw.c

index ec4fe0b096f1c2f88fdb0bb6bb7f065d1d1c9340..c3102e3fef8f54f09b30037c35a6483640b880ae 100644 (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]);