mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 19:30:11 +01:00
nouveau: fix nouveau_scratch_runout_release bo count underflow
This commit is contained in:
parent
5795d3b5ae
commit
9dfac63ae0
1 changed files with 3 additions and 1 deletions
|
|
@ -524,8 +524,10 @@ nouveau_scratch_runout_release(struct nouveau_context *nv)
|
|||
{
|
||||
if (!nv->scratch.nr_runout)
|
||||
return;
|
||||
while (nv->scratch.nr_runout--)
|
||||
do {
|
||||
--nv->scratch.nr_runout;
|
||||
nouveau_bo_ref(NULL, &nv->scratch.runout[nv->scratch.nr_runout]);
|
||||
} while (nv->scratch.nr_runout);
|
||||
|
||||
FREE(nv->scratch.runout);
|
||||
nv->scratch.end = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue