anv: Add a descriptor_count to descriptor sets

This is useful for asserting in-bounds descriptor set access.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7180>
This commit is contained in:
Jason Ekstrand
2020-10-16 12:52:46 -05:00
committed by Marge Bot
parent dd1971c9d8
commit 215218f32f
4 changed files with 8 additions and 2 deletions

View File

@@ -2091,6 +2091,7 @@ struct anv_descriptor_set {
/* Link to descriptor pool's desc_sets list . */
struct list_head pool_link;
uint32_t descriptor_count;
struct anv_descriptor descriptors[0];
};