vtn: Use secure_getenv for shader dumping
Reviewed-by: Eric Engestrom <eric@igalia.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27381>
This commit is contained in:

committed by
Marge Bot

parent
f3b892b74a
commit
321e2cee53
@@ -201,7 +201,7 @@ _vtn_fail(struct vtn_builder *b, const char *file, unsigned line,
|
||||
file, line, fmt, args);
|
||||
va_end(args);
|
||||
|
||||
const char *dump_path = getenv("MESA_SPIRV_FAIL_DUMP_PATH");
|
||||
const char *dump_path = secure_getenv("MESA_SPIRV_FAIL_DUMP_PATH");
|
||||
if (dump_path)
|
||||
vtn_dump_shader(b, dump_path, "fail");
|
||||
|
||||
@@ -6934,7 +6934,7 @@ spirv_to_nir(const uint32_t *words, size_t word_count,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char *dump_path = getenv("MESA_SPIRV_DUMP_PATH");
|
||||
const char *dump_path = secure_getenv("MESA_SPIRV_DUMP_PATH");
|
||||
if (dump_path)
|
||||
vtn_dump_shader(b, dump_path, "spirv");
|
||||
|
||||
|
Reference in New Issue
Block a user