summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-07-17 13:37:14 +0200
committerMarek Olšák <maraeo@gmail.com>2010-07-17 13:37:14 +0200
commitf92d1a54e998c1fbe65eefd7af539f97a60fc82b (patch)
treeccc1175741e14d1d63c0ef8da3df592f12961310 /src
parent184abe8e26f76a50ede43d503aa6bf129d8d6b76 (diff)
r300g: fix constant buffer emission on r3xx
FDO bug #29128.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r300/r300_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index 349f3912d1..53e7f25df3 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -170,7 +170,7 @@ void r300_emit_fs_constants(struct r300_context* r300, unsigned size, void *stat
{
struct r300_fragment_shader *fs = r300_fs(r300);
struct r300_constant_buffer *buf = (struct r300_constant_buffer*)state;
- unsigned count = fs->shader->externals_count * 4;
+ unsigned count = fs->shader->externals_count;
unsigned i, j;
CS_LOCALS(r300);