diff options
author | Samuel Pitoiset <[email protected]> | 2017-09-22 15:16:22 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-09-25 10:47:01 +0200 |
commit | 3f6a17a8fcdb891409794bb7925a6fb4947b54e1 (patch) | |
tree | c57ffac315d0d0c00ae8faa0b4dfe4cd388e00c9 /src/amd | |
parent | 6f8c40734bee276325ed718ccd015d4794567027 (diff) |
radv: init the trace BO before compiling meta shaders
Otherwise, the disasm string is NULL for meta shaders.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 6171408ced1..28a941e219c 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -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); |