summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgibbed <rick@gibbed.us>2018-07-01 01:31:33 -0500
committergibbed <rick@gibbed.us>2018-07-01 01:31:33 -0500
commit15eb6ed2d9283b329544c3a6f5e59a4da246d6b1 (patch)
tree88c2b89d1511069f3e31e5e64ab4eaf49d9d51d6
parent43574158920b8671c54e79fd1a81d19dacd365d6 (diff)
[Vulkan] Fix GetMipExtent calculating mip extent incorrectly.
-rw-r--r--src/xenia/gpu/vulkan/texture_cache.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xenia/gpu/vulkan/texture_cache.cc b/src/xenia/gpu/vulkan/texture_cache.cc
index 6ca1560ac..029a60b9f 100644
--- a/src/xenia/gpu/vulkan/texture_cache.cc
+++ b/src/xenia/gpu/vulkan/texture_cache.cc
@@ -1132,13 +1132,13 @@ TextureExtent TextureCache::GetMipExtent(const TextureInfo& src, uint32_t mip) {
uint32_t depth = src.depth + 1;
TextureExtent extent;
if (mip == 0) {
- extent = TextureExtent::Calculate(format_info, width, height, depth, width,
+ extent = TextureExtent::Calculate(format_info, width, height, depth, false,
false);
} else {
uint32_t mip_width = std::max(1u, width >> mip);
uint32_t mip_height = std::max(1u, height >> mip);
extent = TextureExtent::Calculate(format_info, mip_width, mip_height, depth,
- mip_width, false);
+ false, false);
}
return extent;
}