diff options
author | Gert Wollny <gert.wollny@collabora.com> | 2022-11-24 13:26:17 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-01-17 13:19:04 +0000 |
commit | 994cf0e995277b5d2a07494578ad739f931e3d2d (patch) | |
tree | afb5664b163ff83225f2286304424376dd81f211 /src/gallium/drivers/virgl/virgl_screen.c | |
parent | 7380656a8ceeb21b2378a651b6cacdea711ffcd7 (diff) |
virgl: lower image variable offsets into the intrinsic range_base value
With that we get the correct base offset when accessing image arrays.
This is required if there a various images with different access
specifiers, because only with the correct base offset the host driver is
able to pick the right array.
Fixes GL-CTS: KHR-GL43.shading_language_420pack.binding_image_array
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.c | 1 |
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 cd96aeb46dd..ed76f57f0ce 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -1180,6 +1180,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; slab_create_parent(&screen->transfer_pool, sizeof(struct virgl_transfer), 16); |