drisw: Disable automatic use of layered drivers with LIBGL_ALWAYS_SOFTWARE
authorJesse Natalie <jenatali@microsoft.com>
Fri, 29 Jan 2021 17:53:23 +0000 (09:53 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 4 Feb 2021 16:19:51 +0000 (16:19 +0000)
commita88cd98315c6eecd8026402cf785ca5092589b58
tree0b22c411058f0c92f8409d72fb5037d4232f5e42
parent6ae726b79988addc50c1ed149151a351d0343d9d
drisw: Disable automatic use of layered drivers with LIBGL_ALWAYS_SOFTWARE

If LIBGL_ALWAYS_SOFTWARE is set, then drisw is selected, and internally,
drisw should choose one of the actual software drivers. If it's not set,
but drisw is still selected (no hardware DRM driver, like in WSL), then
layered drivers are preferred over pure software.

Fixes: 4a3b42a7 ("drisw: Prefer hardware-layered sw-winsys drivers over pure sw")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4171
Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8782>
src/gallium/auxiliary/target-helpers/inline_sw_helper.h
src/gallium/auxiliary/target-helpers/sw_helper.h