Merge pull request #7076 from ameerj/amd-botw

vk_texture_cache: Disable cube compatibility flag on non-mesa AMD GCN4 and earlier
This commit is contained in:
bunnei
2021-09-28 10:46:56 -07:00
committed by GitHub
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) {