From: Roland Scheidegger Date: Tue, 5 May 2009 15:45:50 +0000 (+0200) Subject: r200: fix CS section size mismatch (bug 21565) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2577937b61c2f182d905010ace960ef95c1a026;p=mesa.git r200: fix CS section size mismatch (bug 21565) --- diff --git a/src/mesa/drivers/dri/r200/r200_state_init.c b/src/mesa/drivers/dri/r200/r200_state_init.c index 75262e46bd8..535d34f1152 100644 --- a/src/mesa/drivers/dri/r200/r200_state_init.c +++ b/src/mesa/drivers/dri/r200/r200_state_init.c @@ -505,6 +505,8 @@ static void ctx_emit_cs(GLcontext *ctx, struct radeon_state_atom *atom) dwords += 6; if (rrb) dwords += 6; + if (atom->cmd_size == CTX_STATE_SIZE_NEWDRM) + dwords += 4; /* output the first 7 bytes of context */ BEGIN_BATCH_NO_AUTOSTATE(dwords);