mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
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 <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
d6d3e6027d
commit
8d2e95bd4b
2 changed files with 4 additions and 1 deletions
|
|
@ -550,7 +550,8 @@ backend_visitor::backend_visitor(struct brw_context *brw,
|
||||||
shader_prog(shader_prog),
|
shader_prog(shader_prog),
|
||||||
prog(prog),
|
prog(prog),
|
||||||
stage_prog_data(stage_prog_data),
|
stage_prog_data(stage_prog_data),
|
||||||
cfg(NULL)
|
cfg(NULL),
|
||||||
|
stage(stage)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,8 @@ public:
|
||||||
|
|
||||||
cfg_t *cfg;
|
cfg_t *cfg;
|
||||||
|
|
||||||
|
gl_shader_stage stage;
|
||||||
|
|
||||||
virtual void dump_instruction(backend_instruction *inst) = 0;
|
virtual void dump_instruction(backend_instruction *inst) = 0;
|
||||||
virtual void dump_instruction(backend_instruction *inst, FILE *file) = 0;
|
virtual void dump_instruction(backend_instruction *inst, FILE *file) = 0;
|
||||||
virtual void dump_instructions();
|
virtual void dump_instructions();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue