From 267f13dbee38bad8e9386f355942e18a75925820 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 4 Jan 2018 15:41:11 -0800 Subject: [PATCH] broadcom/vc5: Add the new tesselation opcodes in V3D 4.1. --- src/broadcom/qpu/qpu_pack.c | 5 ++++- src/broadcom/qpu/tests/qpu_disasm.c | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.30.2