summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/virgl/virgl_screen.c
diff options
context:
space:
mode:
authorGert Wollny <gert.wollny@collabora.com>2022-11-24 17:09:42 +0100
committerMarge Bot <emma+marge@anholt.net>2023-01-17 13:19:04 +0000
commitd59e5aa08fad03a426f840e20701723d99f382c0 (patch)
treee1ca39c635e17d09fb3b9ddb57e6754302892939 /src/gallium/drivers/virgl/virgl_screen.c
parent994cf0e995277b5d2a07494578ad739f931e3d2d (diff)
virgl: Request setting the atomic offset in the range_base
With that NTT can encode the array base of atomic arrays separately so that the host driver can address the arrays correctly. Fixes GL-CTS: KHR-Single-GL43.arrays_of_arrays_gl.AtomicUsage Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19980>
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_screen.c')
-rw-r--r--src/gallium/drivers/virgl/virgl_screen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c
index ed76f57f0ce..a2766430c5f 100644
--- a/src/gallium/drivers/virgl/virgl_screen.c
+++ b/src/gallium/drivers/virgl/virgl_screen.c
@@ -1181,6 +1181,7 @@ virgl_create_screen(struct virgl_winsys *vws, const struct pipe_screen_config *c
screen->compiler_options.lower_ffma32 = true;
screen->compiler_options.fuse_ffma32 = false;
screen->compiler_options.lower_image_offset_to_range_base = true;
+ screen->compiler_options.lower_atomic_offset_to_range_base = true;
slab_create_parent(&screen->transfer_pool, sizeof(struct virgl_transfer), 16);