From 0b11a9d893416063bb37671c813dff1a8a270e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Ondra=C4=8Dka?= Date: Thu, 1 Jun 2023 18:23:27 +0200 Subject: [PATCH] r300: remove some virglrenderer specifics from ntr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pavel Ondračka Reviewed-by: Emma Anholt Reviewed-by: Filip Gawin Part-of: --- src/gallium/drivers/r300/compiler/nir_to_rc.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/gallium/drivers/r300/compiler/nir_to_rc.c b/src/gallium/drivers/r300/compiler/nir_to_rc.c index 4e468d4e5f3..9e17538846a 100644 --- a/src/gallium/drivers/r300/compiler/nir_to_rc.c +++ b/src/gallium/drivers/r300/compiler/nir_to_rc.c @@ -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); }