anv: dirty descriptor state on CmdSetDescriptorBufferOffets

Calling vkCmdBindDescriptorBuffersEXT() does not invalidate previously
set descriptor sets. Move the state dirtying to
vkCmdSetDescriptorBufferOffets.

Fixes: ab7641b8dc ("anv: implement descriptor buffer binding")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36768>
This commit is contained in:
Iván Briano 2025-08-13 16:39:34 -07:00 committed by Marge Bot
parent 382b8e3aa2
commit 35190aac91

View file

@ -1064,9 +1064,6 @@ void anv_CmdBindDescriptorBuffersEXT(
state->descriptor_buffers.offsets_dirty = ~0;
}
}
anv_cmd_buffer_maybe_dirty_descriptor_mode(cmd_buffer,
ANV_CMD_DESCRIPTOR_BUFFER_MODE_BUFFER);
}
static void
@ -1135,6 +1132,9 @@ void anv_CmdSetDescriptorBufferOffsets2EXT(
pSetDescriptorBufferOffsetsInfo->pOffsets,
pSetDescriptorBufferOffsetsInfo->pBufferIndices);
}
anv_cmd_buffer_maybe_dirty_descriptor_mode(cmd_buffer,
ANV_CMD_DESCRIPTOR_BUFFER_MODE_BUFFER);
}
void anv_CmdBindDescriptorBufferEmbeddedSamplers2EXT(