mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 17:30:32 +01:00
r300: report correct state atom size
Spotted by Pauli Nieminen
This commit is contained in:
parent
88f785935e
commit
fabc744999
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue