mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
r300: remove some virglrenderer specifics from ntr
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>
This commit is contained in:
parent
5d567f0c1b
commit
0b11a9d893
1 changed files with 0 additions and 15 deletions
|
|
@ -1839,21 +1839,6 @@ ntr_push_tex_arg(struct ntr_compile *c,
|
|||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue