mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +02:00
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:
parent
08c5e2854a
commit
80bb2ddb77
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue