aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/ir3/ir3_shader.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2020-01-21 12:24:49 -0800
committerMarge Bot <[email protected]>2020-01-23 17:38:29 +0000
commitb327501dbf946279c8dff55566af73821d0d576e (patch)
tree9fd7eeb21c36ef31f3db1d6b9c5440af36704bda /src/freedreno/ir3/ir3_shader.h
parent876824908db342f83cebb7845d01b713f85b577a (diff)
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 <[email protected]> Reviewed-by: Rob Clark <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3494> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3494>
Diffstat (limited to 'src/freedreno/ir3/ir3_shader.h')
-rw-r--r--src/freedreno/ir3/ir3_shader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_shader.h b/src/freedreno/ir3/ir3_shader.h
index f056a3e5cd6..e6765985676 100644
--- a/src/freedreno/ir3/ir3_shader.h
+++ b/src/freedreno/ir3/ir3_shader.h
@@ -564,6 +564,8 @@ struct ir3_shader_variant {
/* do we need derivatives: */
bool need_pixlod;
+ bool need_fine_derivatives;
+
/* do we have kill, image write, etc (which prevents early-z): */
bool no_earlyz;