intel/fs: Set NonPerspectiveBarycentricEnable when the interpolator needs it.
[anholt: changed to make all drivers do the right thing by moving the payload barycentric check into the compiler] Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17381>
This commit is contained in:
committed by
Marge Bot
parent
075564c251
commit
2d1f021e16
@@ -2168,7 +2168,14 @@ emit_pixel_interpolater_send(const fs_builder &bld,
|
||||
fs_inst *inst = bld.emit(opcode, dst, src, desc);
|
||||
/* 2 floats per slot returned */
|
||||
inst->size_written = 2 * dst.component_size(inst->exec_size);
|
||||
inst->pi_noperspective = interpolation == INTERP_MODE_NOPERSPECTIVE;
|
||||
if (interpolation == INTERP_MODE_NOPERSPECTIVE) {
|
||||
inst->pi_noperspective = true;
|
||||
/* TGL BSpec says:
|
||||
* This field cannot be set to "Linear Interpolation"
|
||||
* unless Non-Perspective Barycentric Enable in 3DSTATE_CLIP is enabled"
|
||||
*/
|
||||
wm_prog_data->uses_nonperspective_interp_modes = true;
|
||||
}
|
||||
|
||||
wm_prog_data->pulls_bary = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user