summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/virgl/virgl_context.h
diff options
context:
space:
mode:
authorTomeu Vizoso <[email protected]>2018-07-17 13:13:21 +0200
committerErik Faye-Lund <[email protected]>2018-09-05 05:46:58 +0100
commitf13de57edb1b0bea0090421e5f812f1041f36e12 (patch)
tree89f768fbd91e3db77d180353dceb8a69468a2095 /src/gallium/drivers/virgl/virgl_context.h
parent1bd927d997f75c85e9f13826d486b6d2d159a621 (diff)
virgl: use hw-atomics instead of in-ssbo ones
Emulating atomics on top of ssbos can lead to too small max SSBO count, so let's use the hw-atomics mechanism to expose atomic buffers instead. Signed-off-by: Erik Faye-Lund <[email protected]> Reviewed-by: Gurchetan Singh <[email protected]>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_context.h')
-rw-r--r--src/gallium/drivers/virgl/virgl_context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_context.h b/src/gallium/drivers/virgl/virgl_context.h
index 38d1f450e17..20988baa3c7 100644
--- a/src/gallium/drivers/virgl/virgl_context.h
+++ b/src/gallium/drivers/virgl/virgl_context.h
@@ -75,6 +75,8 @@ struct virgl_context {
int num_draws;
struct list_head to_flush_bufs;
+ struct pipe_resource *atomic_buffers[PIPE_MAX_HW_ATOMIC_BUFFERS];
+
struct primconvert_context *primconvert;
uint32_t hw_sub_ctx_id;
};