Module: Mesa Branch: main Commit: 079857720b9c0fa637b260eb74391c5901bc7e62 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=079857720b9c0fa637b260eb74391c5901bc7e62
Author: Mike Blumenkrantz <[email protected]> Date: Thu Jul 28 09:08:27 2022 -0400 d3dadapter: fix sw pipe loading this needs to check the env var in order to work correctly cc: mesa-stable Reviewed-by: Axel Davy <[email protected]> Reviewed-by: David Heidelberg <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17792> --- src/gallium/targets/d3dadapter9/drm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c index a5e9c5606fd..174b1041c2b 100644 --- a/src/gallium/targets/d3dadapter9/drm.c +++ b/src/gallium/targets/d3dadapter9/drm.c @@ -297,6 +297,7 @@ drm_create_adapter( int fd, driDestroyOptionCache(&userInitOptions); driDestroyOptionInfo(&defaultInitOptions); + sw_rendering |= debug_get_bool_option("D3D_ALWAYS_SOFTWARE", false); /* wrap it to create a software screen that can share resources */ if (sw_rendering && pipe_loader_sw_probe_wrapped(&ctx->swdev, ctx->base.hal)) ctx->base.ref = pipe_loader_create_screen(ctx->swdev);
