summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/r300_cmdbuf.c
diff options
context:
space:
mode:
authorMaciej Cencora <[email protected]>2010-03-21 12:43:38 +0100
committerMaciej Cencora <[email protected]>2010-03-24 20:08:17 +0100
commitfabc744999bf282e80baf44c45c58cab8a67d604 (patch)
tree288be6846ad69051605d8c863c98aff6c7e9e736 /src/mesa/drivers/dri/r300/r300_cmdbuf.c
parent88f785935e43701a1ac56dae3952a915a9dd201b (diff)
r300: report correct state atom size
Spotted by Pauli Nieminen
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_cmdbuf.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_cmdbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_cmdbuf.c b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
index 8eb596d1c5a..788dc2f16e9 100644
--- a/src/mesa/drivers/dri/r300/r300_cmdbuf.c
+++ b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
@@ -77,7 +77,7 @@ static int check_vpu(GLcontext *ctx, struct radeon_state_atom *atom)
cnt = vpu_count(atom->cmd);
if (r300->radeon.radeonScreen->kernel_mm) {
- extra = 5;
+ extra = 3;
}
return cnt ? (cnt * 4) + extra : 0;
@@ -91,7 +91,7 @@ static int check_vpp(GLcontext *ctx, struct radeon_state_atom *atom)
if (r300->radeon.radeonScreen->kernel_mm) {
cnt = r300->selected_vp->code.constants.Count * 4;
- extra = 5;
+ extra = 3;
} else {
cnt = vpu_count(atom->cmd);
extra = 1;