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

b23678
diff -up mesa-20.3.0-rc1/src/gallium/frontends/lavapipe/lvp_device.c.dma mesa-20.3.0-rc1/src/gallium/frontends/lavapipe/lvp_device.c
b23678
--- mesa-20.3.0-rc1/src/gallium/frontends/lavapipe/lvp_device.c.dma	2020-11-19 15:11:42.483134826 +1000
b23678
+++ mesa-20.3.0-rc1/src/gallium/frontends/lavapipe/lvp_device.c	2020-11-19 15:13:08.556425782 +1000
b23678
@@ -118,6 +118,9 @@ VkResult lvp_CreateInstance(
b23678
       client_version = VK_API_VERSION_1_0;
b23678
    }
b23678
 
b23678
+   if (!getenv("RH_SW_VULKAN"))
b23678
+      return VK_ERROR_INITIALIZATION_FAILED;
b23678
+
b23678
    instance = vk_zalloc2(&default_alloc, pAllocator, sizeof(*instance), 8,
b23678
                          VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
b23678
    if (!instance)