projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
aa66f57
)
gallium: Fix accumulation buffer tile coordinates.
author
Michel Dänzer
<daenzer@vmware.com>
Thu, 12 Feb 2009 18:55:42 +0000
(19:55 +0100)
committer
Michel Dänzer
<daenzer@vmware.com>
Thu, 12 Feb 2009 18:55:42 +0000
(19:55 +0100)
src/mesa/state_tracker/st_cb_accum.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_accum.c
b/src/mesa/state_tracker/st_cb_accum.c
index 36e2f4d4607277953269c3523eefda0db3135e97..46ec03234fc2252fed60919675b4b78a3df44837 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_accum.c
+++ b/
src/mesa/state_tracker/st_cb_accum.c
@@
-255,13
+255,13
@@
accum_load(struct pipe_context *pipe, GLfloat value,
buf = (GLfloat *) malloc(width * height * 4 * sizeof(GLfloat));
buf = (GLfloat *) malloc(width * height * 4 * sizeof(GLfloat));
- pipe_get_tile_rgba(color_trans,
xpos, ypos
, width, height, buf);
+ pipe_get_tile_rgba(color_trans,
0, 0
, width, height, buf);
for (i = 0; i < 4 * width * height; i++) {
buf[i] = buf[i] * value;
}
for (i = 0; i < 4 * width * height; i++) {
buf[i] = buf[i] * value;
}
- acc_put_tile_rgba(pipe, acc_trans,
xpos, ypos
, width, height, buf);
+ acc_put_tile_rgba(pipe, acc_trans,
0, 0
, width, height, buf);
free(buf);
screen->tex_transfer_release(screen, &acc_trans);
free(buf);
screen->tex_transfer_release(screen, &acc_trans);
@@
-292,11
+292,11
@@
accum_return(GLcontext *ctx, GLfloat value,
PIPE_TRANSFER_READ_WRITE, xpos, ypos,
width, height);
PIPE_TRANSFER_READ_WRITE, xpos, ypos,
width, height);
- acc_get_tile_rgba(pipe, acc_trans,
xpos, ypos
, width, height, abuf);
+ acc_get_tile_rgba(pipe, acc_trans,
0, 0
, width, height, abuf);
if (!colormask[0] || !colormask[1] || !colormask[2] || !colormask[3]) {
cbuf = (GLfloat *) malloc(width * height * 4 * sizeof(GLfloat));
if (!colormask[0] || !colormask[1] || !colormask[2] || !colormask[3]) {
cbuf = (GLfloat *) malloc(width * height * 4 * sizeof(GLfloat));
- pipe_get_tile_rgba(color_trans,
xpos, ypos
, width, height, cbuf);
+ pipe_get_tile_rgba(color_trans,
0, 0
, width, height, cbuf);
}
for (i = 0; i < width * height; i++) {
}
for (i = 0; i < width * height; i++) {
@@
-311,7
+311,7
@@
accum_return(GLcontext *ctx, GLfloat value,
}
}
}
}
- pipe_put_tile_rgba(color_trans,
xpos, ypos
, width, height, abuf);
+ pipe_put_tile_rgba(color_trans,
0, 0
, width, height, abuf);
free(abuf);
if (cbuf)
free(abuf);
if (cbuf)