Commit 3f6a17a8 authored by Samuel Pitoiset's avatar Samuel Pitoiset

radv: init the trace BO before compiling meta shaders

Otherwise, the disasm string is NULL for meta shaders.
Signed-off-by: 's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: 's avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
parent 6f8c4073
......@@ -1203,6 +1203,11 @@ VkResult radv_CreateDevice(
device->physical_device->rad_info.chip_class >= VI &&
device->physical_device->rad_info.max_se >= 2;
if (getenv("RADV_TRACE_FILE")) {
if (!radv_init_trace(device))
goto fail;
}
result = radv_device_init_meta(device);
if (result != VK_SUCCESS)
goto fail;
......@@ -1225,11 +1230,6 @@ VkResult radv_CreateDevice(
device->ws->cs_finalize(device->empty_cs[family]);
}
if (getenv("RADV_TRACE_FILE")) {
if (!radv_init_trace(device))
goto fail;
}
if (device->physical_device->rad_info.chip_class >= CIK)
cik_create_gfx_config(device);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment