gallium/sw: add sw_vk bit to avoid having to futz with env vars for lavapipe

lavapipe really only currently works with llvmpipe, and likely for the forseeable
future.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11643>
This commit is contained in:
Dave Airlie
2021-06-30 05:22:58 +10:00
committed by Marge Bot
parent ed123a03be
commit 75a8246563
11 changed files with 53 additions and 26 deletions

View File

@@ -148,7 +148,7 @@ pipe_loader_get_driinfo_xml(const char *driver_name)
}
struct pipe_screen *
pipe_loader_create_screen(struct pipe_loader_device *dev)
pipe_loader_create_screen_vk(struct pipe_loader_device *dev, bool sw_vk)
{
struct pipe_screen_config config;
@@ -156,7 +156,13 @@ pipe_loader_create_screen(struct pipe_loader_device *dev)
pipe_loader_load_options(dev);
config.options = &dev->option_cache;
return dev->ops->create_screen(dev, &config);
return dev->ops->create_screen(dev, &config, sw_vk);
}
struct pipe_screen *
pipe_loader_create_screen(struct pipe_loader_device *dev)
{
return pipe_loader_create_screen_vk(dev, false);
}
struct util_dl_library *