From dc0bd799cabdd974b05bd217304944392169fb50 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Fri, 29 Aug 2014 12:50:46 -0700 Subject: i965/fs: Remove direct fs_visitor gl_fragment_program dependence Instead we cast backend_visitor::prog for fragment shader specific code paths. Signed-off-by: Jordan Justen Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_wm_iz.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/drivers/dri/i965/brw_wm_iz.cpp') diff --git a/src/mesa/drivers/dri/i965/brw_wm_iz.cpp b/src/mesa/drivers/dri/i965/brw_wm_iz.cpp index 0a639f176e1..47823a764de 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_iz.cpp +++ b/src/mesa/drivers/dri/i965/brw_wm_iz.cpp @@ -125,6 +125,8 @@ void fs_visitor::setup_payload_gen4() GLuint reg = 2; bool kill_stats_promoted_workaround = false; int lookup = key->iz_lookup; + assert(stage == MESA_SHADER_FRAGMENT); + gl_fragment_program *fp = (gl_fragment_program*) prog; bool uses_depth = (fp->Base.InputsRead & (1 << VARYING_SLOT_POS)) != 0; -- cgit v1.2.3