projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1fd40e5
)
softpipe: fix xpot calculation typo in sp_get_samples_2d_nearest_clamp_POT
author
Keith Whitwell
<keithw@vmware.com>
Thu, 20 Aug 2009 17:13:25 +0000
(18:13 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Thu, 20 Aug 2009 17:13:25 +0000
(18:13 +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 90371d635306ab6c6a35c0deb128ec34adf2671e..2987548fb343c9ed71b94163400f9a1f18c84e19 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_tex_sample.c
+++ b/
src/gallium/drivers/softpipe/sp_tex_sample.c
@@
-985,8
+985,8
@@
sp_get_samples_2d_nearest_clamp_POT(struct tgsi_sampler *tgsi_sampler,
const struct sp_shader_sampler *samp = sp_shader_sampler(tgsi_sampler);
unsigned j;
unsigned level = samp->level;
- unsigned xpot =
(1<<samp->xpot
);
- unsigned ypot =
(1<<samp->ypot
);
+ unsigned xpot =
1 << (samp->xpot - level
);
+ unsigned ypot =
1 << (samp->ypot - level
);
for (j = 0; j < QUAD_SIZE; j++) {
int c;