2022-03-29 12:32:20 +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-10-05 14:00:43 +00:00
|
|
|
if (pAllocator == NULL)
|
2022-03-29 12:32:20 +00:00
|
|
|
pAllocator = vk_default_allocator();
|
2021-03-30 16:20:12 +00:00
|
|
|
|
|
|
|
+ if (!getenv("RH_SW_VULKAN"))
|
|
|
|
+ return VK_ERROR_INITIALIZATION_FAILED;
|
|
|
|
+
|
2021-10-05 14:00:43 +00:00
|
|
|
instance = vk_zalloc(pAllocator, sizeof(*instance), 8,
|
|
|
|
VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
|
2021-03-30 16:20:12 +00:00
|
|
|
if (!instance)
|