diff options
author | Tomeu Vizoso <[email protected]> | 2018-07-17 13:13:21 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2018-09-05 05:46:58 +0100 |
commit | f13de57edb1b0bea0090421e5f812f1041f36e12 (patch) | |
tree | 89f768fbd91e3db77d180353dceb8a69468a2095 /src/gallium/drivers/virgl/virgl_encode.h | |
parent | 1bd927d997f75c85e9f13826d486b6d2d159a621 (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_encode.h')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_encode.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_encode.h b/src/gallium/drivers/virgl/virgl_encode.h index 999123f4266..40e62d453b6 100644 --- a/src/gallium/drivers/virgl/virgl_encode.h +++ b/src/gallium/drivers/virgl/virgl_encode.h @@ -267,6 +267,9 @@ int virgl_encode_set_shader_images(struct virgl_context *ctx, enum pipe_shader_type shader, unsigned start_slot, unsigned count, const struct pipe_image_view *images); +int virgl_encode_set_hw_atomic_buffers(struct virgl_context *ctx, + unsigned start_slot, unsigned count, + const struct pipe_shader_buffer *buffers); int virgl_encode_memory_barrier(struct virgl_context *ctx, unsigned flags); int virgl_encode_launch_grid(struct virgl_context *ctx, |