Blame SOURCES/lavapipe-disable-env-var.patch

38d2b7
diff -up mesa-21.1.1/src/gallium/frontends/lavapipe/lvp_device.c.dma mesa-21.1.1/src/gallium/frontends/lavapipe/lvp_device.c
38d2b7
--- mesa-21.1.1/src/gallium/frontends/lavapipe/lvp_device.c.dma	2021-05-20 13:08:02.207217380 +1000
38d2b7
+++ mesa-21.1.1/src/gallium/frontends/lavapipe/lvp_device.c	2021-05-20 13:08:35.868127094 +1000
38d2b7
@@ -224,6 +224,9 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_Creat
38d2b7
    if (pAllocator == NULL)
38d2b7
       pAllocator = &default_alloc;
b23678
 
b23678
+   if (!getenv("RH_SW_VULKAN"))
b23678
+      return VK_ERROR_INITIALIZATION_FAILED;
b23678
+
38d2b7
    instance = vk_zalloc(pAllocator, sizeof(*instance), 8,
38d2b7
                         VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
b23678
    if (!instance)