Mesa (master): llvmpipe: enable lower device id to zero

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 23 22:45:20 UTC 2020


Module: Mesa
Branch: master
Commit: 7de0d93fcd660e3770b03f77a2674df2977c059c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7de0d93fcd660e3770b03f77a2674df2977c059c

Author: Dave Airlie <airlied at redhat.com>
Date:   Fri Dec 18 12:29:27 2020 +1000

llvmpipe: enable lower device id to zero

this is to support vulkan device group

Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Reviweed-by: Eric Anholt <eric at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8154>

---

 src/gallium/drivers/llvmpipe/lp_screen.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index a76aa8d8c34..69b35b8a74d 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -581,6 +581,7 @@ static const struct nir_shader_compiler_options gallivm_nir_options = {
    .lower_cs_local_index_from_id = true,
    .lower_uniforms_to_ubo = true,
    .lower_vector_cmp = true,
+   .lower_device_index_to_zero = true,
 };
 
 static void



More information about the mesa-commit mailing list