projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20553e4
)
mesa: Make MESA_SHADER_CAPTURE_PATH skip shaders with Name == -1.
author
Kenneth Graunke
<kenneth@whitecape.org>
Mon, 25 Jul 2016 21:49:28 +0000
(14:49 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Tue, 26 Jul 2016 20:27:09 +0000
(13:27 -0700)
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>
src/mesa/main/shaderapi.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/shaderapi.c
b/src/mesa/main/shaderapi.c
index c5c502466e55da0e0ce9dcab2975ce9af6ffcacd..41c3202148e88dad27acf4d9b9cb85e5090a0553 100644
(file)
--- a/
src/mesa/main/shaderapi.c
+++ b/
src/mesa/main/shaderapi.c
@@
-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];