mesa: Make MESA_SHADER_CAPTURE_PATH skip shaders with Name == -1.
Shaders with shProg->Name == ~0 (aka 4294967295) are internal meta shaders that we don't really want to capture. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
@@ -1094,7 +1094,7 @@ _mesa_link_program(struct gl_context *ctx, struct gl_shader_program *shProg)
|
||||
|
||||
/* Capture .shader_test files. */
|
||||
const char *capture_path = _mesa_get_shader_capture_path();
|
||||
if (shProg->Name != 0 && capture_path != NULL) {
|
||||
if (shProg->Name != 0 && shProg->Name != ~0 && capture_path != NULL) {
|
||||
FILE *file;
|
||||
char filename[PATH_MAX];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user