From: Jason Ekstrand Date: Fri, 6 Nov 2015 19:56:48 +0000 (-0800) Subject: anv: Add a layout to anv_descriptor_set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f029e0ce13b1fd6182c98a76df3920431a867589;p=mesa.git anv: Add a layout to anv_descriptor_set --- 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]; };