vk_texture_cache: Disable cube compatibility flag on non-mesa AMD GCN4 and earlier

Fixes rainbow textures on BOTW.
This commit is contained in:
ameerj 2021-09-23 18:11:18 -04:00
parent 7b22d61fb1
commit 1e1ecca691
3 changed files with 22 additions and 11 deletions

View file

@ -127,7 +127,7 @@ constexpr VkBorderColor ConvertBorderColor(const std::array<float, 4>& color) {
const auto format_info = MaxwellToVK::SurfaceFormat(device, FormatType::Optimal, false, format);
VkImageCreateFlags flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT;
if (info.type == ImageType::e2D && info.resources.layers >= 6 &&
info.size.width == info.size.height) {
info.size.width == info.size.height && !device.HasBrokenCubeImageCompability()) {
flags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
}
if (info.type == ImageType::e3D) {