turnip: Add support for fine derivatives.
authorEric Anholt <eric@anholt.net>
Tue, 21 Jan 2020 20:24:49 +0000 (12:24 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 17:38:29 +0000 (17:38 +0000)
commitb327501dbf946279c8dff55566af73821d0d576e
tree9fd7eeb21c36ef31f3db1d6b9c5440af36704bda
parent876824908db342f83cebb7845d01b713f85b577a
turnip: Add support for fine derivatives.

This does appear to be the required instruction sequence (dsxpp_1 dst src;
dsxpp_1.p dst src) as dropping either instruction fails the testsuite.

Fixes dEQP-VK.glsl.derivate.*

Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3494>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3494>
src/freedreno/ir3/ir3.h
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_legalize.c
src/freedreno/ir3/ir3_shader.h
src/freedreno/vulkan/tu_pipeline.c