anv: Fix descriptor sampler offsets assignment
This seems to be a simple copy-paste mistake. It makes sense to or-assign
surface offsets because we clear the actual offset part with a mask first,
but sampler offsets should be just assigned instead.
Fixes: 7c76125d ("anv: use 2 different buffers for surfaces/samplers in descriptor sets")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10790
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29019>
This commit is contained in:
committed by
Marge Bot
parent
be518657b9
commit
39c4de7e42
@@ -866,7 +866,7 @@ anv_cmd_buffer_bind_descriptor_set(struct anv_cmd_buffer *cmd_buffer,
|
||||
assert((offset & ~ANV_DESCRIPTOR_SET_OFFSET_MASK) == 0);
|
||||
push->desc_surface_offsets[set_index] &= ~ANV_DESCRIPTOR_SET_OFFSET_MASK;
|
||||
push->desc_surface_offsets[set_index] |= offset;
|
||||
push->desc_sampler_offsets[set_index] |=
|
||||
push->desc_sampler_offsets[set_index] =
|
||||
anv_address_physical(set->desc_sampler_addr) -
|
||||
cmd_buffer->device->physical->va.dynamic_state_pool.addr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user