Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Filip Gawin <filip.gawin@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23437>
return;
nir_src *src = &instr->src[tex_src].src;
-
- /* virglrenderer workaround that's hard to do in tgsi_translate: Make sure
- * that TG4's immediate offset arg is float-typed.
- */
- if (instr->op == nir_texop_tg4 && tex_src_type == nir_tex_src_backend2 &&
- nir_src_is_const(*src)) {
- nir_const_value *consts = nir_src_as_const_value(*src);
- s->srcs[s->i++] = ureg_imm4f(c->ureg,
- consts[0].f32,
- consts[1].f32,
- consts[2].f32,
- consts[3].f32);
- return;
- }
-
s->srcs[s->i++] = ntr_get_src(c, *src);
}