mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 22:28:45 +00:00
vulkan: Account for fallbacks when setting depth attachment format.
This commit is contained in:
parent
30c35e1fe1
commit
eabc2e83c0
1 changed files with 3 additions and 1 deletions
|
@ -211,7 +211,9 @@ bool PipelineCache::RefreshGraphicsKey() {
|
||||||
key.depth_bias_enable = regs.polygon_control.NeedsBias();
|
key.depth_bias_enable = regs.polygon_control.NeedsBias();
|
||||||
|
|
||||||
const auto& db = regs.depth_buffer;
|
const auto& db = regs.depth_buffer;
|
||||||
const auto ds_format = LiverpoolToVK::DepthFormat(db.z_info.format, db.stencil_info.format);
|
const auto ds_format = instance.GetSupportedFormat(
|
||||||
|
LiverpoolToVK::DepthFormat(db.z_info.format, db.stencil_info.format),
|
||||||
|
vk::FormatFeatureFlagBits2::eDepthStencilAttachment);
|
||||||
if (db.z_info.format != AmdGpu::Liverpool::DepthBuffer::ZFormat::Invalid) {
|
if (db.z_info.format != AmdGpu::Liverpool::DepthBuffer::ZFormat::Invalid) {
|
||||||
key.depth_format = ds_format;
|
key.depth_format = ds_format;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue