diff options
author | Roland Scheidegger <sroland@vmware.com> | 2009-05-05 17:45:50 +0200 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2009-05-05 17:45:50 +0200 |
commit | b2577937b61c2f182d905010ace960ef95c1a026 (patch) | |
tree | aaa9c4215cad0b84b242e4cd21ea44d03a250bac /src/mesa | |
parent | f616995e5ed56745c4470b2ca5aeeb8d89a8c9db (diff) |
r200: fix CS section size mismatch (bug 21565)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | 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 75262e46bd..535d34f115 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); |