diff options
author | Kenneth Graunke <[email protected]> | 2014-07-21 20:05:21 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-07-23 15:44:14 -0700 |
commit | 8d2e95bd4b0f652aabddff53cb157eb002d415f0 (patch) | |
tree | 87e3e08f66f55e3e7c260426d267b10facb4d70b /src/mesa/drivers/dri/i965 | |
parent | d6d3e6027de6c9bd409f4ed0cf47e4f6c2114df3 (diff) |
i965: Save the gl_shader_stage enum in backend_visitor.
This will be useful for INTEL_DEBUG=optimizer in the vec4 backend, which
needs to know whether it's currently processing a VS or GS. It isn't
worth adding virtual methods for this case.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.cpp | 3 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_shader.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_shader.cpp b/src/mesa/drivers/dri/i965/brw_shader.cpp index 072a661ef83..f56ea68756b 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.cpp +++ b/src/mesa/drivers/dri/i965/brw_shader.cpp @@ -550,7 +550,8 @@ backend_visitor::backend_visitor(struct brw_context *brw, shader_prog(shader_prog), prog(prog), stage_prog_data(stage_prog_data), - cfg(NULL) + cfg(NULL), + stage(stage) { } diff --git a/src/mesa/drivers/dri/i965/brw_shader.h b/src/mesa/drivers/dri/i965/brw_shader.h index 1c5f41eeb3a..5c48671ff6d 100644 --- a/src/mesa/drivers/dri/i965/brw_shader.h +++ b/src/mesa/drivers/dri/i965/brw_shader.h @@ -162,6 +162,8 @@ public: cfg_t *cfg; + gl_shader_stage stage; + virtual void dump_instruction(backend_instruction *inst) = 0; virtual void dump_instruction(backend_instruction *inst, FILE *file) = 0; virtual void dump_instructions(); |