From 9db4eb9f31cc985de93b8f0156d5062c9220a1ad Mon Sep 17 00:00:00 2001 From: Packit Service Date: Feb 24 2021 15:36:02 +0000 Subject: Apply patch lavapipe-disable-env-var.patch patch_name: lavapipe-disable-env-var.patch present_in_specfile: true location_in_specfile: 1 --- diff --git a/src/gallium/frontends/lavapipe/lvp_device.c b/src/gallium/frontends/lavapipe/lvp_device.c index 45734f9..2832402 100644 --- a/src/gallium/frontends/lavapipe/lvp_device.c +++ b/src/gallium/frontends/lavapipe/lvp_device.c @@ -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)