mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 03:18:08 +02:00
nir/legalize_16bit_sampler_srcs: Don't guess source type.
Signed-off-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14895>
This commit is contained in:
parent
b5fe1187ec
commit
81b2008af9
1 changed files with 2 additions and 6 deletions
|
|
@ -609,12 +609,8 @@ nir_legalize_16bit_sampler_srcs(nir_shader *nir,
|
|||
continue;
|
||||
|
||||
/* Fix the bit size. */
|
||||
bool is_sint = i == nir_tex_src_offset;
|
||||
bool is_uint = !is_sint &&
|
||||
(tex->op == nir_texop_txf ||
|
||||
tex->op == nir_texop_txf_ms ||
|
||||
tex->op == nir_texop_txs ||
|
||||
tex->op == nir_texop_samples_identical);
|
||||
bool is_sint = nir_tex_instr_src_type(tex, i) == nir_type_int;
|
||||
bool is_uint = nir_tex_instr_src_type(tex, i) == nir_type_uint;
|
||||
nir_ssa_def *(*convert)(nir_builder *, nir_ssa_def *);
|
||||
|
||||
switch (bit_size) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue