anv: handle descriptor binding with DGC

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31384>
This commit is contained in:
Lionel Landwerlin 2024-07-21 19:57:47 +03:00 committed by Marge Bot
parent 08c5e2854a
commit 80bb2ddb77

View file

@ -656,9 +656,11 @@ anv_cmd_buffer_bind_descriptor_set(struct anv_cmd_buffer *cmd_buffer,
cmd_buffer->state.descriptor_buffers.offsets_dirty |= stages;
} else {
/* Plaforms with LSC will use descriptor buffer push constant
* offsets
* offsets, also with device generated commands, shaders are much
* more likely to access the offset on pre-LSC platforms.
*/
bool update_desc_sets = cmd_buffer->device->info->has_lsc;
bool update_desc_sets = cmd_buffer->device->vk.enabled_features.deviceGeneratedCommands ||
cmd_buffer->device->info->has_lsc;
if (update_desc_sets) {
struct anv_push_constants *push = &pipe_state->push_constants;