summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrChat <arkolbed@gmail.com>2017-09-07 14:37:05 -0500
committerDrChat <arkolbed@gmail.com>2017-09-07 14:37:05 -0500
commite674c9df26272fd0e2dfa4d8b2d510caed57e112 (patch)
tree68ebe765ca189e9b1d153ecbf1ac30230ae16955
parentf9d08888c7ef34c243e492447843c6d138793cc5 (diff)
Vulkan: Emit a warning when attempting to use a texture in an unsupported way
-rw-r--r--src/xenia/gpu/vulkan/texture_cache.cc5
1 files changed, 5 insertions, 0 deletions
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();
}