intel/brw: Don't emit Z coordinate interpolation if CPS isn't in use.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28283>
This commit is contained in:
committed by
Marge Bot
parent
475fb68726
commit
0d92ec44e5
@@ -352,7 +352,8 @@ fs_visitor::emit_interpolation_setup()
|
||||
|
||||
abld = bld.annotate("compute pos.z");
|
||||
fs_reg coarse_z;
|
||||
if (wm_prog_data->uses_depth_w_coefficients) {
|
||||
if (wm_prog_data->coarse_pixel_dispatch != BRW_NEVER &&
|
||||
wm_prog_data->uses_depth_w_coefficients) {
|
||||
/* In coarse pixel mode, the HW doesn't interpolate Z coordinate
|
||||
* properly. In the same way we have to add the coarse pixel size to
|
||||
* pixels locations, here we recompute the Z value with 2 coefficients
|
||||
|
||||
Reference in New Issue
Block a user