nak: do perspective divide for interp none as well
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
@@ -350,7 +350,8 @@ nak_nir_lower_fs_inputs(nir_shader *nir)
|
||||
continue;
|
||||
|
||||
nir_intrinsic_instr *bary = nir_src_as_intrinsic(intrin->src[0]);
|
||||
if (nir_intrinsic_interp_mode(bary) == INTERP_MODE_SMOOTH) {
|
||||
if (nir_intrinsic_interp_mode(bary) == INTERP_MODE_SMOOTH ||
|
||||
nir_intrinsic_interp_mode(bary) == INTERP_MODE_NONE) {
|
||||
/* Perspective-correct interpolation requires that we divide by
|
||||
* gl_FragCoord.w.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user