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 <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
shader_prog(shader_prog),
prog(prog),
stage_prog_data(stage_prog_data),
- cfg(NULL)
+ cfg(NULL),
+ stage(stage)
{
}
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();