From: Pierre-Eric Pelloux-Prayer Date: Fri, 28 Feb 2020 13:24:29 +0000 (+0100) Subject: radeonsi: add AMD_DEBUG=tmz option X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=856a03b4c1646cae36b0c2522a3a7b71ecec6fac;p=mesa.git radeonsi: add AMD_DEBUG=tmz option Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c index 3d81129a334..befdc14815c 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c @@ -112,6 +112,11 @@ static bool do_winsys_init(struct amdgpu_winsys *ws, ws->zero_all_vram_allocs = strstr(debug_get_option("R600_DEBUG", ""), "zerovram") != NULL || strstr(debug_get_option("AMD_DEBUG", ""), "zerovram") != NULL || driQueryOptionb(config->options, "radeonsi_zerovram"); + ws->secure = strstr(debug_get_option("AMD_DEBUG", ""), "tmz"); + + if (ws->secure) { + fprintf(stderr, "=== TMZ usage enabled ===\n"); + } return true;