From 99838513aee4aeb100ff82fa7e2424c2d8e4f845 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 26 Mar 2021 16:28:46 -0700 Subject: [PATCH] freedreno/a5xx: Add support for clip distances and use them for userclip. A little low-stakes RE effort as I unwind from fighting CI all day. Comes from diffing dEQP-VK.clipping.user_defined.clip_distance.vert.* on the blob and comparing to a6xx behavior. (My blob doesn't do tess, so if there are equivalent tess fields for some of these, I didn't find them) Part-of: --- src/freedreno/registers/adreno/a5xx.xml | 21 +++- src/gallium/drivers/freedreno/a5xx/fd5_draw.c | 1 - src/gallium/drivers/freedreno/a5xx/fd5_emit.c | 9 -- .../drivers/freedreno/a5xx/fd5_program.c | 35 +++++- .../ci/piglit-freedreno-a530-fails.txt | 103 ------------------ .../drivers/freedreno/freedreno_screen.c | 6 +- 6 files changed, 55 insertions(+), 120 deletions(-) diff --git a/src/freedreno/registers/adreno/a5xx.xml b/src/freedreno/registers/adreno/a5xx.xml index e4991f270d3..aea009637aa 100644 --- a/src/freedreno/registers/adreno/a5xx.xml +++ b/src/freedreno/registers/adreno/a5xx.xml @@ -1812,7 +1812,11 @@ xsi:schemaLocation="http://nouveau.freedesktop.org/ rules-ng.xsd"> - + + + + + @@ -2279,7 +2283,16 @@ bit 7 for RECTLIST (clear) when z32s8 (used for clear of depth32? not set - + + + + + + +