From d59e5aa08fad03a426f840e20701723d99f382c0 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Thu, 24 Nov 2022 17:09:42 +0100 Subject: [PATCH] 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 Part-of: --- src/gallium/drivers/virgl/ci/virpipe-gl-fails.txt | 1 - src/gallium/drivers/virgl/virgl_screen.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/virgl/ci/virpipe-gl-fails.txt b/src/gallium/drivers/virgl/ci/virpipe-gl-fails.txt index 3a98f416f14..a633ac4ee87 100644 --- a/src/gallium/drivers/virgl/ci/virpipe-gl-fails.txt +++ b/src/gallium/drivers/virgl/ci/virpipe-gl-fails.txt @@ -51,7 +51,6 @@ KHR-GL43.shader_storage_buffer_object.basic-atomic-case1,Fail KHR-GL43.shader_storage_buffer_object.basic-atomic-case2,Fail KHR-GL43.shader_subroutine.ssbo_atomic_image_load_store,Fail -KHR-Single-GL43.arrays_of_arrays_gl.AtomicUsage,Fail KHR-Single-GL43.arrays_of_arrays_gl.InteractionArgumentAliasing1,Fail KHR-Single-GL43.arrays_of_arrays_gl.InteractionArgumentAliasing2,Fail KHR-Single-GL43.arrays_of_arrays_gl.InteractionArgumentAliasing3,Fail 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);