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:
Bas Nieuwenhuizen
2021-04-28 02:10:57 +02:00
committed by Marge Bot
parent c88d1bace3
commit 8025b4120f
14 changed files with 199 additions and 147 deletions

View File

@@ -628,12 +628,12 @@ cik_create_gfx_config(struct radv_device *device)
radeon_emit(cs, PKT3_NOP_PAD);
}
device->gfx_init =
VkResult result =
device->ws->buffer_create(device->ws, cs->cdw * 4, 4096, device->ws->cs_domain(device->ws),
RADEON_FLAG_CPU_ACCESS | RADEON_FLAG_NO_INTERPROCESS_SHARING |
RADEON_FLAG_READ_ONLY | RADEON_FLAG_GTT_WC,
RADV_BO_PRIORITY_CS);
if (!device->gfx_init)
RADV_BO_PRIORITY_CS, &device->gfx_init);
if (result != VK_SUCCESS)
goto fail;
void *map = device->ws->buffer_map(device->gfx_init);