diff options
author | Jason Ekstrand <[email protected]> | 2015-11-06 13:16:15 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-06 13:16:18 -0800 |
commit | d7cc9929bb5c82ded45f3a6345c4141348514c85 (patch) | |
tree | d369f6e1459940370ce95094dbff854b7225c016 /src/vulkan/gen8_state.c | |
parent | 0360c3608b880f65921a497c8d17a74165d2970d (diff) |
anv: Remove all support for BufferViews
We never *actually* supported them, we just used them for binding UBOs.
Now that we have BufferInfo and we aren't supporting texture buffers yet,
we should get rid of them until we can do them properly.
Diffstat (limited to 'src/vulkan/gen8_state.c')
-rw-r--r-- | src/vulkan/gen8_state.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/vulkan/gen8_state.c b/src/vulkan/gen8_state.c index d9438127f2a..61aede99ad4 100644 --- a/src/vulkan/gen8_state.c +++ b/src/vulkan/gen8_state.c @@ -63,30 +63,6 @@ gen8_fill_buffer_surface_state(void *state, const struct anv_format *format, GEN8_RENDER_SURFACE_STATE_pack(NULL, state, &surface_state); } -VkResult gen8_CreateBufferView( - VkDevice _device, - const VkBufferViewCreateInfo* pCreateInfo, - VkBufferView* pView) -{ - ANV_FROM_HANDLE(anv_device, device, _device); - struct anv_buffer_view *bview; - VkResult result; - - result = anv_buffer_view_create(device, pCreateInfo, &bview); - if (result != VK_SUCCESS) - return result; - - const struct anv_format *format = - anv_format_for_vk_format(pCreateInfo->format); - - gen8_fill_buffer_surface_state(bview->surface_state.map, format, - bview->offset, pCreateInfo->range); - - *pView = anv_buffer_view_to_handle(bview); - - return VK_SUCCESS; -} - static const uint8_t anv_halign[] = { [4] = HALIGN4, [8] = HALIGN8, |