summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2009-11-03 16:58:39 +0100
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-11-04 18:19:34 -0800
commit4671005a4317fa37aea8786740470a40906fbfa7 (patch)
tree291a8e287beffe856fc0093572cd11ccf6cc2271
parent07190888bdc41f53bf8ea30c9e2ee4a61b42d802 (diff)
r300g: fix the size of CS when emitting the fragprog constant buffer
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
-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 fc823ad31f..6415c59c2d 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -285,7 +285,7 @@ void r500_emit_fs_constant_buffer(struct r300_context* r300,
if (constants->Count == 0)
return;
- BEGIN_CS(constants->Count * 4 + 2);
+ BEGIN_CS(constants->Count * 4 + 3);
OUT_CS_REG(R500_GA_US_VECTOR_INDEX, R500_GA_US_VECTOR_INDEX_TYPE_CONST);
OUT_CS_ONE_REG(R500_GA_US_VECTOR_DATA, constants->Count * 4);
for (i = 0; i < constants->Count; i++) {