i965: Save the gl_shader_stage enum in backend_visitor.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 22 Jul 2014 03:05:21 +0000 (20:05 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Jul 2014 22:44:14 +0000 (15:44 -0700)
commit8d2e95bd4b0f652aabddff53cb157eb002d415f0
tree87e3e08f66f55e3e7c260426d267b10facb4d70b
parentd6d3e6027de6c9bd409f4ed0cf47e4f6c2114df3
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>
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_shader.h