[Mesa-dev] [Bug 109565] CmdBindDescriptorSets gets confused about dynamic offsets

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 6 14:04:59 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=109565

--- Comment #5 from Jakub OkoĊ„ski <jakub at okonski.org> ---
So I've duplicated the binding of that set into two separate bindings, one for
VERTEX stage, one for COMPUTE. And I updated them the same way:

Thread 0, Frame 0:
vkUpdateDescriptorSets(device, descriptorWriteCount, pDescriptorWrites,
descriptorCopyCount, pDescriptorCopies) returns void:
    device:                         VkDevice = 0x5577e9626f10
    descriptorWriteCount:           uint32_t = 2
    pDescriptorWrites:              const VkWriteDescriptorSet* =
0x7ffdeda2aee0
        pDescriptorWrites[0]:           const VkWriteDescriptorSet =
0x7ffdeda2aee0:
            sType:                          VkStructureType =
VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET (35)
            pNext:                          const void* = NULL
            dstSet:                         VkDescriptorSet = 0x5577e9626c00
            dstBinding:                     uint32_t = 0
            dstArrayElement:                uint32_t = 0
            descriptorCount:                uint32_t = 1
            descriptorType:                 VkDescriptorType =
VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER (6)
            pImageInfo:                     const VkDescriptorImageInfo* =
UNUSED
            pBufferInfo:                    const VkDescriptorBufferInfo* =
0x7ffdeda2ad80
                pBufferInfo[0]:                 const VkDescriptorBufferInfo =
0x7ffdeda2ad80:
                    buffer:                         VkBuffer = 0x5577e9626b10
                    offset:                         VkDeviceSize = 0
                    range:                          VkDeviceSize = 262144
            pTexelBufferView:               const VkBufferView* = UNUSED
        pDescriptorWrites[1]:           const VkWriteDescriptorSet =
0x7ffdeda2af20:
            sType:                          VkStructureType =
VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET (35)
            pNext:                          const void* = NULL
            dstSet:                         VkDescriptorSet = 0x5577e9626c00
            dstBinding:                     uint32_t = 1
            dstArrayElement:                uint32_t = 0
            descriptorCount:                uint32_t = 1
            descriptorType:                 VkDescriptorType =
VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER (6)
            pImageInfo:                     const VkDescriptorImageInfo* =
UNUSED
            pBufferInfo:                    const VkDescriptorBufferInfo* =
0x7ffdeda2ad80
                pBufferInfo[0]:                 const VkDescriptorBufferInfo =
0x7ffdeda2ad80:
                    buffer:                         VkBuffer = 0x5577e9626b10
                    offset:                         VkDeviceSize = 0
                    range:                          VkDeviceSize = 262144
            pTexelBufferView:               const VkBufferView* = UNUSED
    descriptorCopyCount:            uint32_t = 0
    pDescriptorCopies:              const VkCopyDescriptorSet* = 0x5577e82ee320

Now I get a different assertion error, but only when using the api_dump layer
(without other validation errors):

v4: ../mesa-19.0.0-rc2/src/amd/vulkan/radv_cmd_buffer.c:2727:
radv_bind_descriptor_set: Assertion `!(set->layout->flags &
VK_DESCRIPTOR_SET_LAYOUT_CREATE_PUSH_DESCRIPTOR_BIT_KHR)' failed.

This really confuses me, because I am not using or enabling the push descriptor
extension, how could this bit be set?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190206/8bc212df/attachment.html>


More information about the mesa-dev mailing list