summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_emit.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-01-09 11:34:33 +0100
committerMarek Olšák <[email protected]>2013-01-09 16:40:37 +0100
commit4f2d9a8f520cda5bf7af9b8e659f247c753211af (patch)
treec7c264cfd34136a40f7477739841fd1849bf6f40 /src/gallium/drivers/r300/r300_emit.c
parent959e83d65075513f989cb1fe634dca314a7e185f (diff)
r300g: fix CS checker errors caused by emit_dsa_state
size is 10 on r500 and 8 on r300
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-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 4163d2d1430..825038a9dc9 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -102,7 +102,7 @@ void r300_emit_dsa_state(struct r300_context* r300, unsigned size, void* state)
BEGIN_CS(size);
OUT_CS_REG(R300_FG_ALPHA_FUNC, alpha_func);
- OUT_CS_TABLE(fb->zsbuf ? &dsa->cb_begin : dsa->cb_zb_no_readwrite, 8);
+ OUT_CS_TABLE(fb->zsbuf ? &dsa->cb_begin : dsa->cb_zb_no_readwrite, size-2);
END_CS;
}