From 30ab3e39fd4d9cceb8a1a7d06dc3d99b0f477a72 Mon Sep 17 00:00:00 2001 From: "Kristian H. Kristensen" Date: Thu, 5 Sep 2019 15:12:23 -0700 Subject: freedreno/a6xx: Implement primitive count queries on GPU The driver can't determine PIPE_QUERY_PRIMITIVES_GENERATED or PIPE_QUERY_PRIMITIVES_EMITTED once we support geometry or tessellation, since these stages add primitives at runtime. Use the WRITE_PRIMITIVE_COUNTS event to write back the primitive counts and implement a hw query for this. Reviewed-by: Rob Clark --- src/freedreno/registers/a6xx.xml | 4 ++++ src/freedreno/registers/adreno_pm4.xml | 1 + 2 files changed, 5 insertions(+) (limited to 'src/freedreno/registers') diff --git a/src/freedreno/registers/a6xx.xml b/src/freedreno/registers/a6xx.xml index 6868ed5528b..13c3dcd5a01 100644 --- a/src/freedreno/registers/a6xx.xml +++ b/src/freedreno/registers/a6xx.xml @@ -2394,6 +2394,10 @@ to upconvert to 32b float internally? + + + + diff --git a/src/freedreno/registers/adreno_pm4.xml b/src/freedreno/registers/adreno_pm4.xml index 06175d3e1ad..efadcd9a3fa 100644 --- a/src/freedreno/registers/adreno_pm4.xml +++ b/src/freedreno/registers/adreno_pm4.xml @@ -15,6 +15,7 @@ xsi:schemaLocation="http://nouveau.freedesktop.org/ rules-ng.xsd"> + -- cgit v1.2.3