mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 10:04:39 +00:00
vk_pipeline_cache: Revert viewport check and remove log
This commit is contained in:
parent
37fe4f96a5
commit
791ca44ada
@ -158,12 +158,6 @@ GraphicsPipeline::GraphicsPipeline(
|
||||
};
|
||||
|
||||
if (!instance.IsDepthClampControlSupported()) {
|
||||
if (key.depth_clamp_user_defined_range) {
|
||||
LOG_WARNING(Render_Vulkan,
|
||||
"Viewport uses custom clamp range zmin={}, zmax={} which cannot be "
|
||||
"accurately emulated",
|
||||
key.min_depth_clamp, key.max_depth_clamp);
|
||||
}
|
||||
viewport_chain.unlink<vk::PipelineViewportDepthClampControlCreateInfoEXT>();
|
||||
}
|
||||
if (!instance.IsDepthClipControlSupported()) {
|
||||
|
@ -525,7 +525,7 @@ void PipelineCache::RefreshDepthClampRange() {
|
||||
zmax = vp_d.zmax;
|
||||
}
|
||||
depth_clamp_is_same_on_all_viewports &= (zmin == vp_d.zmin && zmax == vp_d.zmax);
|
||||
depth_clamp_can_use_viewport_range &= (min_depth >= vp_d.zmin && max_depth <= vp_d.zmax);
|
||||
depth_clamp_can_use_viewport_range &= (min_depth == vp_d.zmin && max_depth == vp_d.zmax);
|
||||
}
|
||||
|
||||
if (zmin == std::numeric_limits<float>::max()) {
|
||||
|
Loading…
Reference in New Issue
Block a user