mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-05-10 19:21:42 +00:00
re-fix the mesa bug
dumb puppy reintroduces old mesa bug
This commit is contained in:
parent
f28d8af7b8
commit
fdbd4f63d0
1 changed files with 7 additions and 7 deletions
|
|
@ -101,15 +101,13 @@ namespace {
|
||||||
if (!success)
|
if (!success)
|
||||||
throw LSFG::vulkan_error(VK_ERROR_INITIALIZATION_FAILED,
|
throw LSFG::vulkan_error(VK_ERROR_INITIALIZATION_FAILED,
|
||||||
"Failed to get instance function pointer for vkCreateInstance");
|
"Failed to get instance function pointer for vkCreateInstance");
|
||||||
success &= initInstanceFunc(*pInstance,
|
|
||||||
"vkCreateDevice", &next_vkCreateDevice);
|
|
||||||
if (!success)
|
|
||||||
throw LSFG::vulkan_error(VK_ERROR_INITIALIZATION_FAILED,
|
|
||||||
"Failed to get instance function pointer for vkCreateDevice");
|
|
||||||
|
|
||||||
// NOLINTEND | skip initialization if the layer is disabled
|
// NOLINTEND | skip initialization if the layer is disabled
|
||||||
if (!Config::activeConf.enable)
|
if (!Config::activeConf.enable) {
|
||||||
return next_vkCreateInstance(pCreateInfo, pAllocator, pInstance);
|
auto res = next_vkCreateInstance(pCreateInfo, pAllocator, pInstance);
|
||||||
|
initInstanceFunc(*pInstance, "vkCreateDevice", &next_vkCreateDevice);
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
// create instance
|
// create instance
|
||||||
try {
|
try {
|
||||||
|
|
@ -126,6 +124,8 @@ namespace {
|
||||||
success = true;
|
success = true;
|
||||||
success &= initInstanceFunc(*pInstance,
|
success &= initInstanceFunc(*pInstance,
|
||||||
"vkDestroyInstance", &next_vkDestroyInstance);
|
"vkDestroyInstance", &next_vkDestroyInstance);
|
||||||
|
success &= initInstanceFunc(*pInstance,
|
||||||
|
"vkCreateDevice", &next_vkCreateDevice); // workaround mesa bug
|
||||||
success &= initInstanceFunc(*pInstance,
|
success &= initInstanceFunc(*pInstance,
|
||||||
"vkGetPhysicalDeviceQueueFamilyProperties", &next_vkGetPhysicalDeviceQueueFamilyProperties);
|
"vkGetPhysicalDeviceQueueFamilyProperties", &next_vkGetPhysicalDeviceQueueFamilyProperties);
|
||||||
success &= initInstanceFunc(*pInstance,
|
success &= initInstanceFunc(*pInstance,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue