Enable the precise occlusion query feature
This commit is contained in:
@@ -332,6 +332,11 @@ namespace vk
|
|||||||
enabled_features.shaderStorageImageWriteWithoutFormat = VK_TRUE;
|
enabled_features.shaderStorageImageWriteWithoutFormat = VK_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (g_cfg.video.precise_zpass_count)
|
||||||
|
{
|
||||||
|
enabled_features.occlusionQueryPrecise = VK_TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
// enabled_features.shaderSampledImageArrayDynamicIndexing = TRUE; // Unused currently but will be needed soon
|
// enabled_features.shaderSampledImageArrayDynamicIndexing = TRUE; // Unused currently but will be needed soon
|
||||||
enabled_features.shaderClipDistance = VK_TRUE;
|
enabled_features.shaderClipDistance = VK_TRUE;
|
||||||
// enabled_features.shaderCullDistance = VK_TRUE; // Alt notation of clip distance
|
// enabled_features.shaderCullDistance = VK_TRUE; // Alt notation of clip distance
|
||||||
@@ -406,6 +411,12 @@ namespace vk
|
|||||||
enabled_features.alphaToOne = VK_FALSE;
|
enabled_features.alphaToOne = VK_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!pgpu->features.occlusionQueryPrecise && enabled_features.occlusionQueryPrecise)
|
||||||
|
{
|
||||||
|
rsx_log.error("Your GPU does not support precise occlusion queries. Graphics may not render correctly.");
|
||||||
|
enabled_features.occlusionQueryPrecise = VK_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
VkDeviceCreateInfo device = {};
|
VkDeviceCreateInfo device = {};
|
||||||
device.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;
|
device.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;
|
||||||
device.pNext = nullptr;
|
device.pNext = nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user