diff options
author | Jason Ekstrand <[email protected]> | 2015-11-06 12:52:12 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-06 12:52:12 -0800 |
commit | 0360c3608b880f65921a497c8d17a74165d2970d (patch) | |
tree | fe2f062931dcbcfb098630af9d888f9f9181d109 /src/vulkan | |
parent | 3aa2fc82dd60133b61635983939494fb4be541db (diff) |
anv/device: Only support binding UBOs through BufferInfo
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/anv_device.c | 31 |
1 files changed, 11 insertions, 20 deletions
diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index eb38adfa426..af5f8d25de1 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -1791,26 +1791,17 @@ void anv_UpdateDescriptorSets( case VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC: case VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC: for (uint32_t j = 0; j < write->count; j++) { - if (write->pDescriptors[j].bufferView.handle) { - ANV_FROM_HANDLE(anv_buffer_view, bview, - write->pDescriptors[j].bufferView); - - desc[j] = (struct anv_descriptor) { - .type = ANV_DESCRIPTOR_TYPE_BUFFER_VIEW, - .buffer_view = bview, - }; - } else { - ANV_FROM_HANDLE(anv_buffer, buffer, - write->pDescriptors[j].bufferInfo.buffer); - assert(buffer); - - desc[j] = (struct anv_descriptor) { - .type = ANV_DESCRIPTOR_TYPE_BUFFER_AND_OFFSET, - .buffer = buffer, - .offset = write->pDescriptors[j].bufferInfo.offset, - .range = write->pDescriptors[j].bufferInfo.range, - }; - } + assert(write->pDescriptors[j].bufferInfo.buffer.handle); + ANV_FROM_HANDLE(anv_buffer, buffer, + write->pDescriptors[j].bufferInfo.buffer); + assert(buffer); + + desc[j] = (struct anv_descriptor) { + .type = ANV_DESCRIPTOR_TYPE_BUFFER_AND_OFFSET, + .buffer = buffer, + .offset = write->pDescriptors[j].bufferInfo.offset, + .range = write->pDescriptors[j].bufferInfo.range, + }; } default: |