aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-02-10 19:50:37 -0800
committerKenneth Graunke <[email protected]>2019-02-11 21:34:48 -0800
commit59ae985631ca984f2d56c599c210c35ec981f665 (patch)
tree5a9b3826e9eee1f923a9b0b8a493453ddeb27bfa /src/mesa
parentf5c7df4dc95ca115b1a1c916b0b133692a7ea6d9 (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index ec4fe0b096f..c3102e3fef8 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -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]);