mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 04:40:11 +01:00
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:
parent
475fb68726
commit
0d92ec44e5
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue