From e674c9df26272fd0e2dfa4d8b2d510caed57e112 Mon Sep 17 00:00:00 2001 From: DrChat Date: Thu, 7 Sep 2017 14:37:05 -0500 Subject: [PATCH] Vulkan: Emit a warning when attempting to use a texture in an unsupported way --- src/xenia/gpu/vulkan/texture_cache.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xenia/gpu/vulkan/texture_cache.cc b/src/xenia/gpu/vulkan/texture_cache.cc index f8d380f49..056623abf 100644 --- a/src/xenia/gpu/vulkan/texture_cache.cc +++ b/src/xenia/gpu/vulkan/texture_cache.cc @@ -253,6 +253,11 @@ TextureCache::Texture* TextureCache::AllocateTexture( vkGetPhysicalDeviceFormatProperties(*device_, format, &props); if ((props.optimalTilingFeatures & required_flags) != required_flags) { // Texture needs conversion on upload to a native format. + XELOGE( + "Texture Cache: Invalid usage flag specified on format %s (vk %d) " + "(0x%.8X != 0x%.8X)", + texture_info.format_info()->name, format, + (props.optimalTilingFeatures & required_flags), required_flags); assert_always(); }