summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i965simple
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-12-20 07:05:52 -0500
committerZack Rusin <zack@tungstengraphics.com>2007-12-20 07:05:52 -0500
commitebf78c0dcccbe2c458b945e014f2bd53ab137e91 (patch)
treefecb9486bc4259be0db5dd54c1089f6d37791a9d /src/mesa/pipe/i965simple
parente9207430cefd44beb1a16cfb5879a7ace475e2f5 (diff)
965: fix the constant buffers
Diffstat (limited to 'src/mesa/pipe/i965simple')
-rw-r--r--src/mesa/pipe/i965simple/brw_curbe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/i965simple/brw_curbe.c b/src/mesa/pipe/i965simple/brw_curbe.c
index 411263f565..ee20e00362 100644
--- a/src/mesa/pipe/i965simple/brw_curbe.c
+++ b/src/mesa/pipe/i965simple/brw_curbe.c
@@ -175,7 +175,7 @@ static void upload_constant_buffer(struct brw_context *brw)
{
struct brw_mem_pool *pool = &brw->pool[BRW_GS_POOL];
unsigned sz = brw->curbe.total_size;
- unsigned bufsz = sz * 16 * sizeof(float);
+ unsigned bufsz = sz * sizeof(float);
float *buf;
unsigned i;
@@ -261,7 +261,7 @@ static void upload_constant_buffer(struct brw_context *brw)
}
if (1) {
- for (i = 0; i < sz*16; i+=4)
+ for (i = 0; i < sz; i+=4)
_mesa_printf("curbe %d.%d: %f %f %f %f\n", i/8, i&4,
buf[i+0], buf[i+1], buf[i+2], buf[i+3]);