mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 07:10:15 +01:00
nak/nir: Use Maxwell input interpolation for SM20+
It appears to be the same at least as far back as Kepler A. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34540>
This commit is contained in:
parent
0105a75c53
commit
bdbe6447ed
1 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ interp_fs_input(nir_builder *b, unsigned num_components, uint32_t addr,
|
|||
comps[c] = nir_fmul(b, comps[c], inv_w);
|
||||
}
|
||||
return nir_vec(b, comps, num_components);
|
||||
} else if (nak->sm >= 50) {
|
||||
} else if (nak->sm >= 20) {
|
||||
struct nak_nir_ipa_flags flags = {
|
||||
.interp_mode = interp_mode,
|
||||
.interp_freq = NAK_INTERP_FREQ_PASS,
|
||||
|
|
@ -100,7 +100,7 @@ interp_fs_input(nir_builder *b, unsigned num_components, uint32_t addr,
|
|||
}
|
||||
return nir_vec(b, comps, num_components);
|
||||
} else {
|
||||
unreachable("Figure out input interpolation on Kepler");
|
||||
unreachable("Unsupported shader model");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue