Mesa (master): radeonsi: add AMD_DEBUG=tmz option
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon May 11 08:56:09 UTC 2020
Module: Mesa
Branch: master
Commit: 856a03b4c1646cae36b0c2522a3a7b71ecec6fac
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=856a03b4c1646cae36b0c2522a3a7b71ecec6fac
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Fri Feb 28 14:24:29 2020 +0100
radeonsi: add AMD_DEBUG=tmz option
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4401>
---
src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c | 5 +++++
1 file changed, 5 insertions(+)
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;
More information about the mesa-commit
mailing list