projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5c7df4
)
i965: Drop unnecessary 'and' with prog->SamplerUnits
author
Kenneth Graunke
<kenneth@whitecape.org>
Mon, 11 Feb 2019 03:50:37 +0000
(19:50 -0800)
committer
Kenneth 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
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_draw.c
b/src/mesa/drivers/dri/i965/brw_draw.c
index ec4fe0b096f1c2f88fdb0bb6bb7f065d1d1c9340..c3102e3fef8f54f09b30037c35a6483640b880ae 100644
(file)
--- 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;
- u
nsigned mask = prog->SamplersUsed &
prog->info.textures_used_by_txf;
+ u
int32_t mask =
prog->info.textures_used_by_txf;
while (mask) {
int s = u_bit_scan(&mask);
BITSET_SET(used_for_txf, prog->SamplerUnits[s]);