radv: init the trace BO before compiling meta shaders
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 22 Sep 2017 13:16:22 +0000 (15:16 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 25 Sep 2017 08:47:01 +0000 (10:47 +0200)
Otherwise, the disasm string is NULL for meta shaders.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c

index 6171408ced15b55ffbefbb120f2de3b8e7fcd758..28a941e219c3c1b11a1c5e2d9d04271f8b54c3cd 100644 (file)
@@ -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);