diff options
author | Jordan Justen <[email protected]> | 2014-08-29 12:50:46 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2014-09-06 11:17:53 -0700 |
commit | dc0bd799cabdd974b05bd217304944392169fb50 (patch) | |
tree | 5b0a4ce465a11c38196eaac32451579f80d39d65 /src/mesa/drivers/dri/i965/brw_wm_iz.cpp | |
parent | 0feb977bbfb0d6bb2c8d3178246acb035a739f37 (diff) |
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 <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_iz.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_iz.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |