From: Eric Anholt Date: Tue, 30 Jun 2020 20:05:51 +0000 (-0700) Subject: freedreno/ir3: Add unit tests for derivatives disasm. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b380483476523f1dfa52f284c60667b78e55a2b;p=mesa.git 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: --- 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 */