vulkan: Rename resolve_image to resolve_image_holder

Fix Android compilation with latest NDK (28.0.13004108) and Java JDK 21 by
renaming the resolve_image variable to resolve_image_holder to avoid potential
naming conflicts. This change helps maintain compatibility with the updated
build toolchain while keeping the core functionality intact.

The change affects the MSAA image copy operation in the Vulkan texture cache
implementation.
This commit is contained in:
Zephyron 2025-02-09 18:22:36 +10:00
parent dcf6f9a071
commit b3c60b4cbe
No known key found for this signature in database

View file

@ -1490,10 +1490,10 @@ void TextureCacheRuntime::CopyImageMSAA(Image& dst, Image& src, std::span<const
.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
};
const auto resolve_image = memory_allocator.CreateImage(resolve_ci);
const auto resolve_image_holder = memory_allocator.CreateImage(resolve_ci);
scheduler.RequestOutsideRenderPassOperationContext();
scheduler.Record([src_image, dst_image, resolve_image = *resolve_image,
scheduler.Record([src_image, dst_image, resolve_image = *resolve_image_holder,
copies, aspect_mask](vk::CommandBuffer cmdbuf) {
for (const auto& copy : copies) {
const VkExtent3D extent{