mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-22 18:15:14 +00:00
vk_pipeline_cache: Don't check depth clamp without a depth buffer
This commit is contained in:
parent
d59015a695
commit
67983387c3
@ -491,6 +491,9 @@ bool PipelineCache::RefreshGraphicsKey() {
|
|||||||
void PipelineCache::RefreshDepthClampRange() {
|
void PipelineCache::RefreshDepthClampRange() {
|
||||||
auto& regs = liverpool->regs;
|
auto& regs = liverpool->regs;
|
||||||
auto& key = graphics_key;
|
auto& key = graphics_key;
|
||||||
|
if (key.z_format == Liverpool::DepthBuffer::ZFormat::Invalid) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
bool depth_clamp_can_use_viewport_range = true;
|
bool depth_clamp_can_use_viewport_range = true;
|
||||||
bool depth_clamp_is_same_on_all_viewports = true;
|
bool depth_clamp_is_same_on_all_viewports = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user