[Vulkan] Check depthClamp feature
This commit is contained in:
parent
4add1f67b1
commit
74f1f6bb6d
|
@ -581,6 +581,7 @@ bool VulkanPipelineCache::GetCurrentStateDescription(
|
|||
primitive_processing_result.host_primitive_reset_enabled;
|
||||
|
||||
description_out.depth_clamp_enable =
|
||||
device_features.depthClamp &&
|
||||
regs.Get<reg::PA_CL_CLIP_CNTL>().clip_disable;
|
||||
|
||||
// TODO(Triang3l): Tessellation.
|
||||
|
@ -825,6 +826,10 @@ bool VulkanPipelineCache::ArePipelineRequirementsMet(
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!device_features.depthClamp && description.depth_clamp_enable) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!device_features.fillModeNonSolid &&
|
||||
description.polygon_mode != PipelinePolygonMode::kFill) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue