r200: fix CS section size mismatch (bug 21565)
authorRoland Scheidegger <sroland@vmware.com>
Tue, 5 May 2009 15:45:50 +0000 (17:45 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 5 May 2009 15:45:50 +0000 (17:45 +0200)
src/mesa/drivers/dri/r200/r200_state_init.c

index 75262e46bd8557b7ea7fca567e6fad935a22d7c1..535d34f1152a39ee829246e0e9ad35f973152886 100644 (file)
@@ -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);