virgl: use hw-atomics instead of in-ssbo ones
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 17 Jul 2018 11:13:21 +0000 (13:13 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 5 Sep 2018 04:46:58 +0000 (05:46 +0100)
commitf13de57edb1b0bea0090421e5f812f1041f36e12
tree89f768fbd91e3db77d180353dceb8a69468a2095
parent1bd927d997f75c85e9f13826d486b6d2d159a621
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 <erik.faye-lund@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/gallium/drivers/virgl/virgl_context.c
src/gallium/drivers/virgl/virgl_context.h
src/gallium/drivers/virgl/virgl_encode.c
src/gallium/drivers/virgl/virgl_encode.h
src/gallium/drivers/virgl/virgl_hw.h
src/gallium/drivers/virgl/virgl_protocol.h
src/gallium/drivers/virgl/virgl_screen.c