From f029e0ce13b1fd6182c98a76df3920431a867589 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 6 Nov 2015 11:56:48 -0800 Subject: [PATCH] anv: Add a layout to anv_descriptor_set --- src/vulkan/anv_device.c | 2 ++ src/vulkan/anv_private.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 26d0fe57a42..156a9d2b1b6 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -1646,6 +1646,8 @@ anv_descriptor_set_create(struct anv_device *device, */ memset(set, 0, size); + set->layout = layout; + /* Go through and fill out immutable samplers if we have any */ struct anv_descriptor *desc = set->descriptors; for (uint32_t b = 0; b < layout->binding_count; b++) { diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 858063da45c..a208162bbb6 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -751,6 +751,7 @@ struct anv_descriptor { }; struct anv_descriptor_set { + const struct anv_descriptor_set_layout *layout; struct anv_descriptor descriptors[0]; }; -- 2.30.2