diff options
author | Kenneth Graunke <[email protected]> | 2015-02-18 17:38:45 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-02-19 15:15:45 -0800 |
commit | 7e35a812643982bef5d90f4998a4f240b2edfd26 (patch) | |
tree | ddec8daf4ddf2cb94306f16971c901f179e83601 /src/mesa/drivers/dri/i965/brw_shader.cpp | |
parent | 7c891e8ddd41a77ccdc804ce938f2a1ed46e97e8 (diff) |
i965: Create backend_visitor fields for debugging messages.
We introduce three new fields in backend_visitor:
- debug_enabled: whether or not INTEL_DEBUG & DEBUG_<stage flag>
- stage_name: "vertex", "fragment", etc. for use in messages
- stage_abbrev: "VS", "FS", etc. for use in messages
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_shader.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index 5781c6b9965..71146c56c5f 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -709,6 +709,9 @@ backend_visitor::backend_visitor(struct brw_context *brw, cfg(NULL), stage(stage) { + debug_enabled = INTEL_DEBUG & intel_debug_flag_for_shader_stage(stage); + stage_name = _mesa_shader_stage_to_string(stage); + stage_abbrev = _mesa_shader_stage_to_abbrev(stage); } bool |