mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-30 02:51:24 +00:00
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:
parent
05818bf7a4
commit
4942e10890
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user