diff options
author | Jason Ekstrand <[email protected]> | 2015-11-06 11:56:48 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-06 12:16:54 -0800 |
commit | f029e0ce13b1fd6182c98a76df3920431a867589 (patch) | |
tree | f744c0ee0b7c176c31c4f1f88f5ff554ec778e24 /src/vulkan | |
parent | 16119ad884f472ed8e59811fca60bccc1dd8580a (diff) |
anv: Add a layout to anv_descriptor_set
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/anv_device.c | 2 | ||||
-rw-r--r-- | src/vulkan/anv_private.h | 1 |
2 files changed, 3 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++) { 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]; }; |