aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-11-14 12:46:44 -0800
committerMatt Turner <[email protected]>2014-12-05 16:43:31 -0800
commit9ed8d00ab546c8d3eadbefa5a6c553cbf9ebebeb (patch)
tree8996ad081048551d7a32370713d49823670373d5 /src/mesa/drivers/dri/i965/brw_fs_generator.cpp
parent5b1e51bfbe6f8b2fa51065bc6e5706c337211d3c (diff)
i965: Give compile stats through KHR_debug.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_generator.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_generator.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
index b3229ef5b99..488528538ce 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -2035,6 +2035,16 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width)
ralloc_free(annotation.ann);
}
+ static GLuint msg_id = 0;
+ _mesa_gl_debug(&brw->ctx, &msg_id,
+ MESA_DEBUG_SOURCE_SHADER_COMPILER,
+ MESA_DEBUG_TYPE_OTHER,
+ MESA_DEBUG_SEVERITY_NOTIFICATION,
+ "FS SIMD%d shader: %d inst, %d loops, "
+ "compacted %d to %d bytes.\n",
+ dispatch_width, before_size / 16, loop_count,
+ before_size, after_size);
+
return start_offset;
}