mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
mesa: reset offset/size to 0 when removing atomic binding
Similar to commit dd9d2963d6 (mesa: AtomicBufferBindings should be
initialized to zero.), we should reset these to zero when unbinding.
This fixes a number of dEQP failures due to cross-test pollution. The
tests properly unbound everything, but when querying the values again,
the expectation was that they would be 0.
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
b7e246d89a
commit
f82ff6207c
1 changed files with 2 additions and 2 deletions
|
|
@ -3007,8 +3007,8 @@ set_atomic_buffer_binding(struct gl_context *ctx,
|
|||
_mesa_reference_buffer_object(ctx, &binding->BufferObject, bufObj);
|
||||
|
||||
if (bufObj == ctx->Shared->NullBufferObj) {
|
||||
binding->Offset = -1;
|
||||
binding->Size = -1;
|
||||
binding->Offset = 0;
|
||||
binding->Size = 0;
|
||||
} else {
|
||||
binding->Offset = offset;
|
||||
binding->Size = size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue