Commit 743fce35 authored by Mike Blumenkrantz's avatar Mike Blumenkrantz 🏋
Browse files

lavapipe: enable mem model extension for zink CI testing only

parent 1be32c49
......@@ -140,6 +140,7 @@ lvp_physical_device_init(struct lvp_physical_device *device,
struct pipe_loader_device *pld)
{
VkResult result;
bool zink_mode = getenv("ZINK_USE_LAVAPIPE");
struct vk_physical_device_dispatch_table dispatch_table;
vk_physical_device_dispatch_table_from_entrypoints(
......@@ -158,6 +159,9 @@ lvp_physical_device_init(struct lvp_physical_device *device,
device->max_images = device->pscreen->get_shader_param(device->pscreen, PIPE_SHADER_FRAGMENT, PIPE_SHADER_CAP_MAX_SHADER_IMAGES);
device->vk.supported_extensions = lvp_device_extensions_supported;
/* only for testing */
if (zink_mode)
device->vk.supported_extensions.KHR_vulkan_memory_model = true;
result = lvp_init_wsi(device);
if (result != VK_SUCCESS) {
vk_physical_device_finish(&device->vk);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment