aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-02-20 13:31:40 -0800
committerEric Anholt <[email protected]>2014-02-22 19:23:20 -0800
commitfdcf6c8fad9edfc87eb5f647af254a6fd6b3b71c (patch)
treec8b695d13504251c16893c2390dec3999cc3565f /src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp
parentf474ced0d13e288e24e694e583f041562c7ee2c8 (diff)
i965: Use the object label when available for INTEL_DEBUG=vs,gs,fs output.
Note that this requires updated run.py in shader_db. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp b/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp
index 7f6b2094e79..45393b536d7 100644
--- a/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp
+++ b/src/mesa/drivers/dri/i965/gen8_vec4_generator.cpp
@@ -801,7 +801,9 @@ gen8_vec4_generator::generate_code(exec_list *instructions)
if (unlikely(debug_flag)) {
if (shader_prog) {
- printf("Native code for vertex shader %d:\n", shader_prog->Name);
+ printf("Native code for %s vertex shader %d:\n",
+ shader_prog->Label ? shader_prog->Label : "unnamed",
+ shader_prog->Name);
} else {
printf("Native code for vertex program %d:\n", prog->Id);
}