anv: fix incorrect asserts when combining CPS and per sample interpolation

CPS is dynamically turned off when per sample interpolation is active.
Update the asserts to reflect this.

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 5644011f06 ("intel/compiler: Convert wm_prog_key::persample_interp to a tri-state")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23103>
This commit is contained in:
Rohan Garg
2023-05-30 18:10:53 +02:00
committed by Marge Bot
parent dc07e0d3fe
commit ef2b763d9c
2 changed files with 10 additions and 5 deletions

View File

@@ -577,10 +577,8 @@ fs_visitor::emit_interpolation_setup_gfx6()
abld.MAD(coarse_z, coarse_z, z_cy, float_pixel_y);
}
if (wm_prog_data->uses_src_depth) {
assert(!wm_prog_data->uses_depth_w_coefficients);
if (wm_prog_data->uses_src_depth)
this->pixel_z = fetch_payload_reg(bld, fs_payload().source_depth_reg);
}
if (wm_prog_data->uses_depth_w_coefficients ||
wm_prog_data->uses_src_depth) {