summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AbstractTexture.h
diff options
context:
space:
mode:
authorConnor McLaughlin <stenzek@gmail.com>2019-08-08 12:23:27 +1000
committerGitHub <noreply@github.com>2019-08-08 12:23:27 +1000
commit1092efa77ae302fc677ebb67cdf2f93024b93f79 (patch)
treef589368c3ae471cb03a79cf631d87cd3bc7aed80 /Source/Core/VideoCommon/AbstractTexture.h
parent9477c8b0ed834efc3b7cf5b9fcd48caf57611a8a (diff)
parent06daf5803243c5f36069d8f7a936e62857ce1eca (diff)
Merge pull request #8276 from stenzek/adreno-efb-access
Fix CPU EFB access on Adreno with Vulkan backend
Diffstat (limited to 'Source/Core/VideoCommon/AbstractTexture.h')
-rw-r--r--Source/Core/VideoCommon/AbstractTexture.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/AbstractTexture.h b/Source/Core/VideoCommon/AbstractTexture.h
index 6ff80e9703..99b5c0c398 100644
--- a/Source/Core/VideoCommon/AbstractTexture.h
+++ b/Source/Core/VideoCommon/AbstractTexture.h
@@ -44,7 +44,8 @@ public:
static bool IsCompressedFormat(AbstractTextureFormat format);
static bool IsDepthFormat(AbstractTextureFormat format);
static bool IsStencilFormat(AbstractTextureFormat format);
- static AbstractTextureFormat GetColorFormatForDepthFormat(AbstractTextureFormat format);
+ static bool IsCompatibleDepthAndColorFormats(AbstractTextureFormat depth_format,
+ AbstractTextureFormat color_format);
static u32 CalculateStrideForFormat(AbstractTextureFormat format, u32 row_length);
static u32 GetTexelSizeForFormat(AbstractTextureFormat format);
static u32 GetBlockSizeForFormat(AbstractTextureFormat format);