summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_device.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-11-06 11:56:48 -0800
committerJason Ekstrand <[email protected]>2015-11-06 12:16:54 -0800
commitf029e0ce13b1fd6182c98a76df3920431a867589 (patch)
treef744c0ee0b7c176c31c4f1f88f5ff554ec778e24 /src/vulkan/anv_device.c
parent16119ad884f472ed8e59811fca60bccc1dd8580a (diff)
anv: Add a layout to anv_descriptor_set
Diffstat (limited to 'src/vulkan/anv_device.c')
-rw-r--r--src/vulkan/anv_device.c2
1 files changed, 2 insertions, 0 deletions
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++) {