[Mesa-dev] [PATCH] radv: init the trace BO before compiling meta shaders

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Fri Sep 22 15:58:24 UTC 2017


r-b

On Fri, Sep 22, 2017 at 6:16 AM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> Otherwise, the disasm string is NULL for meta shaders.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
>  src/amd/vulkan/radv_device.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
> index 9e654a511f..f674051b25 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);
>
> --
> 2.14.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list