mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
ab80e1189f
commit
0e327167a2
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue