summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_qir.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-07-15 12:29:32 -0700
committerEric Anholt <[email protected]>2014-08-11 14:40:45 -0700
commit66c6c401279aa4152a24681f64d0e101aa004593 (patch)
tree8707e885b36cc7a3b522637823eb5dbf83bdd3a2 /src/gallium/drivers/vc4/vc4_qir.c
parentd5a6e3dd9b094a427c7842817227db25fbece134 (diff)
vc4: Add support for texturing (under simulation)
Only rgba8888 works, and only a single texture unit, and it's only under simulation because I haven't built the kernel interface yet. v2: Rebase on helpers. v3: Fold in the don't-break-the-arm-build fix.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c
index 495d16e2a25..0499eb9406f 100644
--- a/src/gallium/drivers/vc4/vc4_qir.c
+++ b/src/gallium/drivers/vc4/vc4_qir.c
@@ -63,6 +63,16 @@ static const struct qir_op_info qir_op_info[] = {
[QOP_VPM_READ] = { "vpm_read", 0, 1, true },
[QOP_TLB_COLOR_WRITE] = { "tlb_color", 0, 1, true },
[QOP_VARY_ADD_C] = { "vary_add_c", 1, 1 },
+
+ [QOP_TEX_S] = { "tex_s", 0, 2 },
+ [QOP_TEX_T] = { "tex_t", 0, 2 },
+ [QOP_TEX_R] = { "tex_r", 0, 2 },
+ [QOP_TEX_B] = { "tex_b", 0, 2 },
+ [QOP_TEX_RESULT] = { "tex_result", 0, 0 },
+ [QOP_R4_UNPACK_A] = { "r4_unpack_a", 1, 0 },
+ [QOP_R4_UNPACK_B] = { "r4_unpack_b", 1, 0 },
+ [QOP_R4_UNPACK_C] = { "r4_unpack_c", 1, 0 },
+ [QOP_R4_UNPACK_D] = { "r4_unpack_d", 1, 0 },
};
static const char *