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

d14a95
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
d14a95
--- mesa-21.1.1/src/gallium/frontends/lavapipe/lvp_device.c.dma	2021-05-20 13:08:02.207217380 +1000
d14a95
+++ mesa-21.1.1/src/gallium/frontends/lavapipe/lvp_device.c	2021-05-20 13:08:35.868127094 +1000
d14a95
@@ -224,6 +224,9 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_Creat
d14a95
    if (pAllocator == NULL)
d14a95
       pAllocator = &default_alloc;
0d69a5
 
0d69a5
+   if (!getenv("RH_SW_VULKAN"))
0d69a5
+      return VK_ERROR_INITIALIZATION_FAILED;
0d69a5
+
d14a95
    instance = vk_zalloc(pAllocator, sizeof(*instance), 8,
d14a95
                         VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
0d69a5
    if (!instance)