From: Jacob Lifshay Date: Wed, 3 Oct 2018 19:58:31 +0000 (-0700) Subject: revert changes to vkGetDeviceProcAddr X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c14bae994da3de949d93bc1b513b1ab82e51e9d0;p=kazan.git revert changes to vkGetDeviceProcAddr bug was caused by old version of libvulkan1.so; works with v1.1.82.1 --- diff --git a/vulkan-driver/src/api_impl.rs b/vulkan-driver/src/api_impl.rs index 36d199d..f71d191 100644 --- a/vulkan-driver/src/api_impl.rs +++ b/vulkan-driver/src/api_impl.rs @@ -3502,25 +3502,11 @@ pub unsafe extern "system" fn vkGetDeviceProcAddr( device: api::VkDevice, name: *const ::std::os::raw::c_char, ) -> api::PFN_vkVoidFunction { - let retval = get_proc_address( + get_proc_address( name, GetProcAddressScope::Device, &SharedHandle::from(device).extensions, - ); - if let Ok(name) = CStr::from_ptr(name).to_str().map_err(|_| ()).and_then(|v| { - if v == "vkCreateSwapchainKHR" || true { - Ok(v) - } else { - Err(()) - } - }) { - eprintln!( - "vkGetDeviceProcAddr(device, {:?}) -> {:?}", - name, - retval.map(|v| v as *const ()) - ); - } - retval + ) } #[allow(non_snake_case)]