radv/winsys: Return vulkan errors for buffer creation.
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10570>
This commit is contained in:

committed by
Marge Bot

parent
c88d1bace3
commit
8025b4120f
@@ -67,11 +67,11 @@ radv_init_trace(struct radv_device *device)
|
||||
struct radeon_winsys *ws = device->ws;
|
||||
VkResult result;
|
||||
|
||||
device->trace_bo = ws->buffer_create(
|
||||
result = ws->buffer_create(
|
||||
ws, TRACE_BO_SIZE, 8, RADEON_DOMAIN_VRAM,
|
||||
RADEON_FLAG_CPU_ACCESS | RADEON_FLAG_NO_INTERPROCESS_SHARING | RADEON_FLAG_ZERO_VRAM,
|
||||
RADV_BO_PRIORITY_UPLOAD_BUFFER);
|
||||
if (!device->trace_bo)
|
||||
RADV_BO_PRIORITY_UPLOAD_BUFFER, &device->trace_bo);
|
||||
if (result != VK_SUCCESS)
|
||||
return false;
|
||||
|
||||
result = ws->buffer_make_resident(ws, device->trace_bo, true);
|
||||
@@ -836,11 +836,11 @@ radv_trap_handler_init(struct radv_device *device)
|
||||
if (result != VK_SUCCESS)
|
||||
return false;
|
||||
|
||||
device->tma_bo = ws->buffer_create(ws, TMA_BO_SIZE, 256, RADEON_DOMAIN_VRAM,
|
||||
RADEON_FLAG_CPU_ACCESS | RADEON_FLAG_NO_INTERPROCESS_SHARING |
|
||||
RADEON_FLAG_ZERO_VRAM | RADEON_FLAG_32BIT,
|
||||
RADV_BO_PRIORITY_SCRATCH);
|
||||
if (!device->tma_bo)
|
||||
result = ws->buffer_create(ws, TMA_BO_SIZE, 256, RADEON_DOMAIN_VRAM,
|
||||
RADEON_FLAG_CPU_ACCESS | RADEON_FLAG_NO_INTERPROCESS_SHARING |
|
||||
RADEON_FLAG_ZERO_VRAM | RADEON_FLAG_32BIT,
|
||||
RADV_BO_PRIORITY_SCRATCH, &device->tma_bo);
|
||||
if (result != VK_SUCCESS)
|
||||
return false;
|
||||
|
||||
result = ws->buffer_make_resident(ws, device->tma_bo, true);
|
||||
|
Reference in New Issue
Block a user