From: Kristian H. Kristensen Date: Fri, 13 Sep 2019 22:20:05 +0000 (-0700) Subject: freedreno/a6xx: Track location of gl_Position out as we link it X-Git-Tag: upstream/19.3.0~1792 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=be38480064a78c4a4391f87e45f7dd78dc88edce;p=platform%2Fupstream%2Fmesa.git freedreno/a6xx: Track location of gl_Position out as we link it When using xfb and rasterizing, the fragment shader may have fewer inputs than the vertex shader outputs. We can't rely on gl_Position to be placed at fs->total_in, but have to instead remember where we add it in the link map and use that location. Fixes 100+ tesselation dEQPs under dEQP-GLES31.functional.tessellation.primitive_discard.* dEQP-GLES31.functional.tessellation.user_defined_io.* Reviewed-by: Eric Anholt --- diff --git a/src/freedreno/registers/a6xx.xml b/src/freedreno/registers/a6xx.xml index 13c3dcd..30f0fe8 100644 --- a/src/freedreno/registers/a6xx.xml +++ b/src/freedreno/registers/a6xx.xml @@ -2423,7 +2423,7 @@ to upconvert to 32b float internally? hw streamout (rather than stg instructions in shader) - +