From 5b380483476523f1dfa52f284c60667b78e55a2b Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 30 Jun 2020 13:05:51 -0700 Subject: [PATCH] freedreno/ir3: Add unit tests for derivatives disasm. Since I was going back to look at fine derivs again, add some tests of instruction encoding. Part-of: --- src/freedreno/ir3/tests/disasm.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freedreno/ir3/tests/disasm.c b/src/freedreno/ir3/tests/disasm.c index 539bfc4c2ea..6899471b448 100644 --- a/src/freedreno/ir3/tests/disasm.c +++ b/src/freedreno/ir3/tests/disasm.c @@ -72,6 +72,14 @@ static const struct test { INSTR_6XX(8010000a_00000003, "rcp r2.z, r0.w"), /* cat5 */ + /* dEQP-VK.glsl.derivate.dfdx.uniform_if.float_mediump */ + INSTR_6XX(a3801102_00000001, "dsx (f32)(x)r0.z, r0.x"), /* dsx (f32)(xOOO)r0.z, r0.x */ + /* dEQP-VK.glsl.derivate.dfdy.uniform_if.float_mediump */ + INSTR_6XX(a3c01102_00000001, "dsy (f32)(x)r0.z, r0.x"), /* dsy (f32)(xOOO)r0.z, r0.x */ + /* dEQP-VK.glsl.derivate.dfdxfine.uniform_loop.float_highp */ + INSTR_6XX(a6001105_00000001, "dsxpp.1 (x)r1.y, r0.x"), /* dsxpp.1 (xOOO)r1.y, r0.x */ + INSTR_6XX(a6201105_00000001, "dsxpp.1.p (x)r1.y, r0.x"), /* dsxpp.1 (xOOO)r1.y, r0.x */ + INSTR_6XX(a2802f00_00000001, "getsize (u16)(xyzw)hr0.x, r0.x, t#0"), /* cat6 */ -- 2.30.2