summaryrefslogtreecommitdiff
path: root/src/broadcom/compiler/nir_to_vir.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2018-01-10 12:51:08 -0800
committerEric Anholt <eric@anholt.net>2018-01-12 21:56:57 -0800
commit5aaea3c4a0bb34dabe365cd968e0bbb3c474defd (patch)
tree69e19c2e19c50832cf6bb939c6274ffe83b8e3f8 /src/broadcom/compiler/nir_to_vir.c
parent028f6b327c4a0504bfbf99eb80b253aa765e2992 (diff)
broadcom/vc5: Add compiler support for V3D 4.x texturing.
Diffstat (limited to 'src/broadcom/compiler/nir_to_vir.c')
-rw-r--r--src/broadcom/compiler/nir_to_vir.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/broadcom/compiler/nir_to_vir.c b/src/broadcom/compiler/nir_to_vir.c
index cec00cb55f..8f37e3b3e3 100644
--- a/src/broadcom/compiler/nir_to_vir.c
+++ b/src/broadcom/compiler/nir_to_vir.c
@@ -334,7 +334,10 @@ ntq_emit_tex(struct v3d_compile *c, nir_tex_instr *instr)
break;
}
- v3d33_vir_emit_tex(c, instr);
+ if (c->devinfo->ver >= 40)
+ v3d40_vir_emit_tex(c, instr);
+ else
+ v3d33_vir_emit_tex(c, instr);
}
static struct qreg