radv: Use secure_getenv for RADV_THREAD_TRACE_TRIGGER
Reviewed-by: Eric Engestrom <eric@igalia.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27381>
(cherry picked from commit e8b0e5cac9
)
This commit is contained in:

committed by
Eric Engestrom

parent
1264799c1e
commit
b8f2ff4232
@@ -44,7 +44,7 @@
|
||||
"description": "radv: Use secure_getenv for RADV_THREAD_TRACE_TRIGGER",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
@@ -260,7 +260,7 @@ static const struct vk_instance_extension_table radv_instance_extensions_support
|
||||
static void
|
||||
radv_handle_legacy_sqtt_trigger(struct vk_instance *instance)
|
||||
{
|
||||
char *trigger_file = getenv("RADV_THREAD_TRACE_TRIGGER");
|
||||
char *trigger_file = secure_getenv("RADV_THREAD_TRACE_TRIGGER");
|
||||
if (trigger_file) {
|
||||
instance->trace_trigger_file = trigger_file;
|
||||
instance->trace_mode |= RADV_TRACE_MODE_RGP;
|
||||
|
Reference in New Issue
Block a user