diff --git a/src/intel/compiler/brw_fs_visitor.cpp b/src/intel/compiler/brw_fs_visitor.cpp index d7735315870..1b5e7001029 100644 --- a/src/intel/compiler/brw_fs_visitor.cpp +++ b/src/intel/compiler/brw_fs_visitor.cpp @@ -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