From: Maciej Cencora Date: Sun, 21 Mar 2010 11:43:38 +0000 (+0100) Subject: r300: report correct state atom size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fabc744999bf282e80baf44c45c58cab8a67d604;p=mesa.git r300: report correct state atom size Spotted by Pauli Nieminen --- 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;