Mesa (radeon-rewrite): r200: fix CS section size mismatch (bug 21565)

Roland Scheidegger sroland at kemper.freedesktop.org
Tue May 5 15:46:19 UTC 2009


Module: Mesa
Branch: radeon-rewrite
Commit: b2577937b61c2f182d905010ace960ef95c1a026
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b2577937b61c2f182d905010ace960ef95c1a026

Author: Roland Scheidegger <sroland at vmware.com>
Date:   Tue May  5 17:45:50 2009 +0200

r200: fix CS section size mismatch (bug 21565)

---

 src/mesa/drivers/dri/r200/r200_state_init.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/r200/r200_state_init.c b/src/mesa/drivers/dri/r200/r200_state_init.c
index 75262e4..535d34f 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);




More information about the mesa-commit mailing list