VKPipeline: Don't include depth clamp control struct when not supported

This should not be needed
This commit is contained in:
CrossVR 2025-07-27 15:18:22 +09:00
commit 0d87f835e2
3 changed files with 4 additions and 4 deletions

View file

@ -380,7 +380,7 @@ std::unique_ptr<VKPipeline> VKPipeline::Create(const AbstractPipelineConfig& con
static const VkRect2D scissor = {{0, 0}, {1, 1}}; static const VkRect2D scissor = {{0, 0}, {1, 1}};
static const VkPipelineViewportStateCreateInfo viewport_state = { static const VkPipelineViewportStateCreateInfo viewport_state = {
VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO, VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO,
&depth_clamp_state, g_backend_info.bSupportsUnrestrictedDepthRange ? &depth_clamp_state : nullptr,
0, // VkPipelineViewportStateCreateFlags flags; 0, // VkPipelineViewportStateCreateFlags flags;
1, // uint32_t viewportCount 1, // uint32_t viewportCount
&viewport, // const VkViewport* pViewports &viewport, // const VkViewport* pViewports

View file

@ -158,8 +158,8 @@ constexpr BugInfo m_known_bugs[] = {
BUG_BROKEN_DYNAMIC_SAMPLER_INDEXING, -1.0, -1.0, true}, BUG_BROKEN_DYNAMIC_SAMPLER_INDEXING, -1.0, -1.0, true},
{API_VULKAN, OS_ANDROID, VENDOR_QUALCOMM, DRIVER_QUALCOMM, Family::UNKNOWN, {API_VULKAN, OS_ANDROID, VENDOR_QUALCOMM, DRIVER_QUALCOMM, Family::UNKNOWN,
BUG_SLOW_OPTIMAL_IMAGE_TO_BUFFER_COPY, -1.0, -1.0, true}, BUG_SLOW_OPTIMAL_IMAGE_TO_BUFFER_COPY, -1.0, -1.0, true},
{API_VULKAN, OS_WINDOWS, VENDOR_ATI, DRIVER_ATI, Family::UNKNOWN, {API_VULKAN, OS_ALL, VENDOR_ATI, DRIVER_ATI, Family::UNKNOWN, BUG_BROKEN_DEPTH_CLAMP_CONTROL,
BUG_BROKEN_DEPTH_CLAMP_CONTROL, -1.0, -1.0, true}, -1.0, -1.0, true},
}; };
static std::map<Bug, BugInfo> m_bugs; static std::map<Bug, BugInfo> m_bugs;

View file

@ -346,7 +346,7 @@ enum Bug
// BUG: Incorrect implementation of VK_EXT_depth_clamp_control causes incorrect depth values to // BUG: Incorrect implementation of VK_EXT_depth_clamp_control causes incorrect depth values to
// be written to the depth buffer. // be written to the depth buffer.
// Affected devices: AMD (Windows) // Affected devices: Official AMD (RADV is unaffected)
// Started Version: -1 // Started Version: -1
// Ended Version: -1 // Ended Version: -1
BUG_BROKEN_DEPTH_CLAMP_CONTROL BUG_BROKEN_DEPTH_CLAMP_CONTROL