radeonsi: add AMD_DEBUG=tmz option

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4401>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2020-02-28 14:24:29 +01:00
parent 977e19d5cf
commit 856a03b4c1
@@ -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;