mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
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> (cherry picked from commit39c4de7e42)
This commit is contained in:
parent
318711b84d
commit
90c4fa8a8f
2 changed files with 2 additions and 2 deletions
|
|
@ -574,7 +574,7 @@
|
|||
"description": "anv: Fix descriptor sampler offsets assignment",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "7c76125db25db9bdf5521baf7c848ccd4bd37b5f",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -821,7 +821,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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue