1
0
forked from rpms/mesa
mesa/SOURCES/lavapipe-disable-env-var.patch

14 lines
676 B
Diff
Raw Normal View History

2021-11-24 04:22:13 +00:00
diff -up mesa-21.3.0/src/gallium/frontends/lavapipe/lvp_device.cdma mesa-21.3.0/src/gallium/frontends/lavapipe/lvp_device.c
--- mesa-21.3.0/src/gallium/frontends/lavapipe/lvp_device.cdma 2021-11-18 06:16:20.000000000 +1000
+++ mesa-21.3.0/src/gallium/frontends/lavapipe/lvp_device.c 2021-11-18 07:03:17.652283186 +1000
@@ -213,6 +213,9 @@ VKAPI_ATTR VkResult VKAPI_CALL lvp_Creat
2021-06-01 04:11:08 +00:00
if (pAllocator == NULL)
2021-11-24 04:22:13 +00:00
pAllocator = vk_default_allocator();
2021-02-16 18:10:18 +00:00
+ if (!getenv("RH_SW_VULKAN"))
+ return VK_ERROR_INITIALIZATION_FAILED;
+
2021-06-01 04:11:08 +00:00
instance = vk_zalloc(pAllocator, sizeof(*instance), 8,
VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
2021-02-16 18:10:18 +00:00
if (!instance)