mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 07:58:07 +02:00
venus: fix deqp tests failed on iub descriptor type
Fixes: abae9d4831 ("Add the iub binding count tracking")
Signed-off-by: Dawn Han <dawnhan@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20064>
This commit is contained in:
parent
12f26b5e6d
commit
fbf4c6e43f
1 changed files with 5 additions and 1 deletions
|
|
@ -502,8 +502,12 @@ vn_descriptor_pool_alloc_descriptors(
|
|||
* pool to exceed the value of
|
||||
* VkDescriptorPoolInlineUniformBlockCreateInfo::maxInlineUniformBlockBindings
|
||||
* used to create the descriptor pool.
|
||||
*
|
||||
* If descriptorCount is zero this binding entry is reserved and the
|
||||
* resource must not be accessed from any stage via this binding within
|
||||
* any pipeline using the set layout.
|
||||
*/
|
||||
if (type == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK) {
|
||||
if (type == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK && count != 0) {
|
||||
if (++pool->used.iub_binding_count > pool->max.iub_binding_count)
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue