mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
nvc0: Skip new update barrier bits
I added new barrier bits in220c1dce1eand made most drivers skip them. I thought nvc0 was already skipping those but missed the else case here, which does something. So make it explicitly skip like I did everywhere else. Thanks to Ilia for catching this. Fixes:220c1dce1egallium: Add PIPE_BARRIER_UPDATE_BUFFER and UPDATE_TEXTURE bits.
This commit is contained in:
parent
6601e5d6fc
commit
3c3f250456
1 changed files with 3 additions and 0 deletions
|
|
@ -60,6 +60,9 @@ nvc0_memory_barrier(struct pipe_context *pipe, unsigned flags)
|
|||
struct nouveau_pushbuf *push = nvc0->base.pushbuf;
|
||||
int i, s;
|
||||
|
||||
if (!(flags & ~PIPE_BARRIER_UPDATE))
|
||||
return;
|
||||
|
||||
if (flags & PIPE_BARRIER_MAPPED_BUFFER) {
|
||||
for (i = 0; i < nvc0->num_vtxbufs; ++i) {
|
||||
if (!nvc0->vtxbuf[i].buffer.resource && !nvc0->vtxbuf[i].is_user_buffer)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue