radv: stop checking buffer size in vkCreateBuffer()

This was added to fix dEQP-VK.api.buffer.basic.size_max_uint64 but
with VK_KHR_maintenance4 this is now considered invalid usage.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14331>
This commit is contained in:
Samuel Pitoiset 2021-12-29 10:29:05 +01:00 committed by Marge Bot
parent 05818bf7a4
commit 4942e10890
2 changed files with 4 additions and 3 deletions

View File

@ -7,3 +7,7 @@ dEQP-VK.wsi.*
# Exclude this test which timeout most of the time.
dEQP-VK.memory.pipeline_barrier.transfer_src_transfer_dst.1048576
# Exclude this test because it fails with VK_KHR_maintenance4 and the CTS fix
# hasn't landed yet.
dEQP-VK.api.buffer.basic.size_max_uint64

View File

@ -6468,9 +6468,6 @@ radv_CreateBuffer(VkDevice _device, const VkBufferCreateInfo *pCreateInfo,
RADV_FROM_HANDLE(radv_device, device, _device);
struct radv_buffer *buffer;
if (pCreateInfo->size > RADV_MAX_MEMORY_ALLOCATION_SIZE)
return VK_ERROR_OUT_OF_DEVICE_MEMORY;
assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO);
buffer = vk_alloc2(&device->vk.alloc, pAllocator, sizeof(*buffer), 8,