aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <[email protected]>2020-02-28 14:24:29 +0100
committerPierre-Eric Pelloux-Prayer <[email protected]>2020-05-11 10:25:53 +0200
commit856a03b4c1646cae36b0c2522a3a7b71ecec6fac (patch)
treec997d2f75ced8d60d187ddd3a868c0c931554980
parent977e19d5cfe02227756aa022a7471570aa17edf7 (diff)
radeonsi: add AMD_DEBUG=tmz option
Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4401>
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c5
1 files changed, 5 insertions, 0 deletions
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;