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); }