<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CmdBindDescriptorSets gets confused about dynamic offsets"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109565#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - CmdBindDescriptorSets gets confused about dynamic offsets"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109565">bug 109565</a>
              from <span class="vcard"><a class="email" href="mailto:jakub@okonski.org" title="Jakub Okoński <jakub@okonski.org>"> <span class="fn">Jakub Okoński</span></a>
</span></b>
        <pre>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?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>