projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79a7ddb
)
softpipe: slightly optimized tiling calculation
author
Keith Whitwell
<keithw@vmware.com>
Thu, 20 Aug 2009 17:12:44 +0000
(18:12 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Thu, 20 Aug 2009 17:12:44 +0000
(18:12 +0100)
src/gallium/drivers/softpipe/sp_tex_sample.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_tex_sample.c
b/src/gallium/drivers/softpipe/sp_tex_sample.c
index 24f331177238b18886e76081d17e6fc00d70a9a4..90371d635306ab6c6a35c0deb128ec34adf2671e 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_tex_sample.c
+++ b/
src/gallium/drivers/softpipe/sp_tex_sample.c
@@
-893,9
+893,8
@@
sp_get_samples_2d_linear_repeat_POT(struct tgsi_sampler *tgsi_sampler,
unsigned level = samp->level;
unsigned xpot = 1 << (samp->xpot - level);
unsigned ypot = 1 << (samp->ypot - level);
-
- unsigned xmax = MIN2(TILE_SIZE, xpot) - 1;
- unsigned ymax = MIN2(TILE_SIZE, ypot) - 1;
+ unsigned xmax = (xpot - 1) & (TILE_SIZE - 1); /* MIN2(TILE_SIZE, xpot) - 1; */
+ unsigned ymax = (ypot - 1) & (TILE_SIZE - 1); /* MIN2(TILE_SIZE, ypot) - 1; */
for (j = 0; j < QUAD_SIZE; j++) {
int c;