14 lines
678 B
Diff
14 lines
678 B
Diff
|
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
|
||
|
--- mesa-20.3.0-rc1/src/gallium/frontends/lavapipe/lvp_device.c.dma 2020-11-19 15:11:42.483134826 +1000
|
||
|
+++ mesa-20.3.0-rc1/src/gallium/frontends/lavapipe/lvp_device.c 2020-11-19 15:13:08.556425782 +1000
|
||
|
@@ -118,6 +118,9 @@ VkResult lvp_CreateInstance(
|
||
|
client_version = VK_API_VERSION_1_0;
|
||
|
}
|
||
|
|
||
|
+ if (!getenv("RH_SW_VULKAN"))
|
||
|
+ return VK_ERROR_INITIALIZATION_FAILED;
|
||
|
+
|
||
|
instance = vk_zalloc2(&default_alloc, pAllocator, sizeof(*instance), 8,
|
||
|
VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE);
|
||
|
if (!instance)
|