From c9ff09c7c2f19f1d8876a8a50ecd97991fad2a29 Mon Sep 17 00:00:00 2001 From: nmzik Date: Sun, 6 Sep 2026 21:40:58 +0400 Subject: [PATCH] textures: keep native formats unless depth promotion is known Co-authored-by: Ettore Sartori <85788613+Ekt0re@users.noreply.github.com> Co-authored-by: Mac --- src/graphics/host_gpu/renderer/pipeline/descriptors.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphics/host_gpu/renderer/pipeline/descriptors.cpp b/src/graphics/host_gpu/renderer/pipeline/descriptors.cpp index 0eb1bba83..f90b7bf90 100644 --- a/src/graphics/host_gpu/renderer/pipeline/descriptors.cpp +++ b/src/graphics/host_gpu/renderer/pipeline/descriptors.cpp @@ -646,9 +646,9 @@ TextureBinding RenderExecutor::ResolveTexture(const ShaderRecompiler::IR::ImageR auto pixel_format = surface_format.vk_format; if (resource.depth_compare) { - const auto* depth_format = FindGuestDepthFormatPolicy(format); - EXIT_NOT_IMPLEMENTED(depth_format == nullptr); - pixel_format = depth_format->depth_attachment_format; + if (const auto* depth_format = FindGuestDepthFormatPolicy(format)) { + pixel_format = depth_format->depth_attachment_format; + } } const auto storage_view_format = storage && format == Prospero::BufferFormat::k32SInt ? vk::Format::eR32Uint