projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6142de3
)
softpipe: fix off-by-one in nearest texcoord routines
author
Keith Whitwell
<keithw@vmware.com>
Mon, 27 Jul 2009 14:51:15 +0000
(15:51 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Mon, 27 Jul 2009 14:51:15 +0000
(15:51 +0100)
Stray '- 0.5' copied from linear versions.
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 8248576e98e0cbf63149639d31624f1884a608ea..4651d781a954d2bb851e801be4f70db5747f1ffa 100644
(file)
--- a/
src/gallium/drivers/softpipe/sp_tex_sample.c
+++ b/
src/gallium/drivers/softpipe/sp_tex_sample.c
@@
-955,8
+955,8
@@
sp_get_samples_2d_nearest_repeat_POT(struct tgsi_sampler *tgsi_sampler,
for (j = 0; j < QUAD_SIZE; j++) {
int c;
- float u = s[j] * xpot
- 0.5F
;
- float v = t[j] * ypot
- 0.5F
;
+ float u = s[j] * xpot;
+ float v = t[j] * ypot;
int uflr = util_ifloor(u);
int vflr = util_ifloor(v);
@@
-990,8
+990,8
@@
sp_get_samples_2d_nearest_clamp_POT(struct tgsi_sampler *tgsi_sampler,
for (j = 0; j < QUAD_SIZE; j++) {
int c;
- float u = s[j] * xpot
- 0.5F
;
- float v = t[j] * ypot
- 0.5F
;
+ float u = s[j] * xpot;
+ float v = t[j] * ypot;
int x0, y0;
const float *out;