summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/r600_query.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-07-27 19:24:59 +0200
committerNicolai Hähnle <[email protected]>2017-08-02 09:48:53 +0200
commitdfc1502c841863b01481f5e88af658f699cca12e (patch)
tree275cc46f33717a833ca3b5f78d71bf1ab81876a1 /src/gallium/drivers/radeon/r600_query.h
parentaff93fd60e9167d1fbe63b4972451d2a5acda6e5 (diff)
radeonsi: fix streamout overflow predication on VI+
There is a firmware regression that causes failures. Work around it by using the compute shader for query_buffer_objects to summarize the query results. v2: rename to PREDICATION_OP_BOOL64 (consistent with sid.h) Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_query.h')
-rw-r--r--src/gallium/drivers/radeon/r600_query.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_query.h b/src/gallium/drivers/radeon/r600_query.h
index e176246122d..5565d706be3 100644
--- a/src/gallium/drivers/radeon/r600_query.h
+++ b/src/gallium/drivers/radeon/r600_query.h
@@ -194,6 +194,10 @@ struct r600_query_hw {
struct list_head list;
/* For transform feedback: which stream the query is for */
unsigned stream;
+
+ /* Workaround via compute shader */
+ struct r600_resource *workaround_buf;
+ unsigned workaround_offset;
};
bool r600_query_hw_init(struct r600_common_screen *rscreen,