diff options
author | Eric Anholt <[email protected]> | 2018-01-04 15:41:11 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-01-12 21:54:50 -0800 |
commit | 267f13dbee38bad8e9386f355942e18a75925820 (patch) | |
tree | f01e8d1081b3f2681d4b69edbcdd96b2e55d7be0 /src | |
parent | edbd817c30e27ad98b584ba0718b54d393e673f2 (diff) |
broadcom/vc5: Add the new tesselation opcodes in V3D 4.1.
Diffstat (limited to 'src')
-rw-r--r-- | src/broadcom/qpu/qpu_pack.c | 5 | ||||
-rw-r--r-- | src/broadcom/qpu/tests/qpu_disasm.c | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/broadcom/qpu/qpu_pack.c b/src/broadcom/qpu/qpu_pack.c index ffabc9a969d..60ed2d697cb 100644 --- a/src/broadcom/qpu/qpu_pack.c +++ b/src/broadcom/qpu/qpu_pack.c @@ -511,7 +511,10 @@ static const struct opcode_desc add_ops[] = { { 187, 187, 1 << 2, 1 << 0, V3D_QPU_A_MSF }, { 187, 187, 1 << 2, 1 << 1, V3D_QPU_A_REVF }, - { 187, 187, 1 << 2, 1 << 2, V3D_QPU_A_VDWWT }, + { 187, 187, 1 << 2, 1 << 2, V3D_QPU_A_VDWWT, 33 }, + { 187, 187, 1 << 2, 1 << 2, V3D_QPU_A_IID, 40 }, + { 187, 187, 1 << 2, 1 << 3, V3D_QPU_A_SAMPID, 40 }, + { 187, 187, 1 << 2, 1 << 4, V3D_QPU_A_PATCHID, 40 }, { 187, 187, 1 << 2, 1 << 5, V3D_QPU_A_TMUWT }, { 187, 187, 1 << 2, 1 << 6, V3D_QPU_A_VPMWT }, diff --git a/src/broadcom/qpu/tests/qpu_disasm.c b/src/broadcom/qpu/tests/qpu_disasm.c index 8d77740edce..8525b75268c 100644 --- a/src/broadcom/qpu/tests/qpu_disasm.c +++ b/src/broadcom/qpu/tests/qpu_disasm.c @@ -80,6 +80,7 @@ static const struct { /* v4.1 opcodes */ { 41, 0x3de020c7bdfd200dull, "ldvpmg_in rf7, r2, r2; mov r3, 13" }, { 41, 0x3de02040f8ff7201ull, "stvpmv 1, rf8 ; mov r1, 1" }, + { 41, 0xd8000e50bb2d3000ull, "sampid rf16 ; fmul rf57.h, r3, r1.l" }, }; static void |