i965: Fix KHR_blend_equation_advanced with some render targets.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 13 Feb 2018 22:16:03 +0000 (14:16 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 24 Feb 2018 23:28:36 +0000 (15:28 -0800)
commit27c829da28ab3cfac0195d02ffb13afa8fe0e23d
treea680f97b2a55e81be75ea07d9b7f448f5defd3a1
parentfb410ae3928b58a3b4b2882ebf97e0e4ba420ad1
i965: Fix KHR_blend_equation_advanced with some render targets.

This reverts two bogus and seemingly useless changes from the commits
referenced below, which broke KHR_blend_equation_advanced (and
EXT_shader_framebuffer_fetch_non_coherent which wasn't exposed yet)
for any kind of render target surface that would cause the
get_isl_surf() call in brw_emit_surface_state() to do anything useful
(notice how the result of get_isl_surf() is completely ignored by the
caller right now), as was the case while using those extensions with
1D array or 3D framebuffers in particular.

Fixes: f5859b45b1686e8116380d87 "i965/miptree: Switch remaining surfaces to isl"
Fixes: bf24c3539e4b6989512968ca "i965/miptree: Clean-up unused"
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c