mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-14 09:40:19 +01:00
nv50: Fix GPU_READING/WRITING bit removal
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> CC: "9.1, 9.2, 10.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
79e6512629
commit
c45cf6199f
2 changed files with 3 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ nv50_validate_fb(struct nv50_context *nv50)
|
|||
if (mt->base.status & NOUVEAU_BUFFER_STATUS_GPU_READING)
|
||||
nv50->state.rt_serialize = TRUE;
|
||||
mt->base.status |= NOUVEAU_BUFFER_STATUS_GPU_WRITING;
|
||||
mt->base.status &= NOUVEAU_BUFFER_STATUS_GPU_READING;
|
||||
mt->base.status &= ~NOUVEAU_BUFFER_STATUS_GPU_READING;
|
||||
|
||||
/* only register for writing, otherwise we'd always serialize here */
|
||||
BCTX_REFN(nv50->bufctx_3d, FB, &mt->base, WR);
|
||||
|
|
@ -91,7 +91,7 @@ nv50_validate_fb(struct nv50_context *nv50)
|
|||
if (mt->base.status & NOUVEAU_BUFFER_STATUS_GPU_READING)
|
||||
nv50->state.rt_serialize = TRUE;
|
||||
mt->base.status |= NOUVEAU_BUFFER_STATUS_GPU_WRITING;
|
||||
mt->base.status &= NOUVEAU_BUFFER_STATUS_GPU_READING;
|
||||
mt->base.status &= ~NOUVEAU_BUFFER_STATUS_GPU_READING;
|
||||
|
||||
BCTX_REFN(nv50->bufctx_3d, FB, &mt->base, WR);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ nv50_validate_tic(struct nv50_context *nv50, int s)
|
|||
|
||||
nv50->screen->tic.lock[tic->id / 32] |= 1 << (tic->id % 32);
|
||||
|
||||
res->status &= NOUVEAU_BUFFER_STATUS_GPU_WRITING;
|
||||
res->status &= ~NOUVEAU_BUFFER_STATUS_GPU_WRITING;
|
||||
res->status |= NOUVEAU_BUFFER_STATUS_GPU_READING;
|
||||
|
||||
BCTX_REFN(nv50->bufctx_3d, TEXTURES, res, RD);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue