summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_private.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-09-15 23:39:45 +0200
committerBas Nieuwenhuizen <[email protected]>2017-09-16 11:55:42 +0200
commitd398db2acb9bb27ce6833a099f9be1cadcb17c5e (patch)
tree5ac5d95ea3b1841582c51950fa44c79a4899a307 /src/amd/vulkan/radv_private.h
parent4f8d1af0f6f45e4f62c9456b018e9945df1e6054 (diff)
radv: Add code to check if two formats can share DCC metadata.
Ported from radeonsi. Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r--src/amd/vulkan/radv_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index e5092a8923b..f9853df5a3f 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -1170,6 +1170,8 @@ bool radv_format_pack_clear_color(VkFormat format,
uint32_t clear_vals[2],
VkClearColorValue *value);
bool radv_is_colorbuffer_format_supported(VkFormat format, bool *blendable);
+bool radv_dcc_formats_compatible(VkFormat format1,
+ VkFormat format2);
struct radv_fmask_info {
uint64_t offset;