anv: track descriptor set layout flags
To identify push descriptors. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19050>
This commit is contained in:

committed by
Marge Bot

parent
d7f1569307
commit
8616f11a39
@@ -416,6 +416,7 @@ VkResult anv_CreateDescriptorSetLayout(
|
||||
|
||||
set_layout->ref_cnt = 1;
|
||||
set_layout->binding_count = num_bindings;
|
||||
set_layout->flags = pCreateInfo->flags;
|
||||
|
||||
for (uint32_t b = 0; b < num_bindings; b++) {
|
||||
/* Initialize all binding_layout entries to -1 */
|
||||
@@ -717,6 +718,7 @@ static void
|
||||
sha1_update_descriptor_set_layout(struct mesa_sha1 *ctx,
|
||||
const struct anv_descriptor_set_layout *layout)
|
||||
{
|
||||
SHA1_UPDATE_VALUE(ctx, layout->flags);
|
||||
SHA1_UPDATE_VALUE(ctx, layout->binding_count);
|
||||
SHA1_UPDATE_VALUE(ctx, layout->descriptor_count);
|
||||
SHA1_UPDATE_VALUE(ctx, layout->shader_stages);
|
||||
|
@@ -1708,6 +1708,8 @@ bool anv_descriptor_requires_bindless(const struct anv_physical_device *pdevice,
|
||||
struct anv_descriptor_set_layout {
|
||||
struct vk_object_base base;
|
||||
|
||||
VkDescriptorSetLayoutCreateFlags flags;
|
||||
|
||||
/* Descriptor set layouts can be destroyed at almost any time */
|
||||
uint32_t ref_cnt;
|
||||
|
||||
|
Reference in New Issue
Block a user