diff options
author | Samuel Pitoiset <[email protected]> | 2018-04-06 15:37:28 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-04-09 11:21:10 +0200 |
commit | 0fc9113ac593e396d3b103bebb2713aac9d072ff (patch) | |
tree | 21c03ba72739d46d99c46375975e71cd7ee07260 /src/amd/vulkan/radv_meta_copy.c | |
parent | 32f5174ce825d13ed3b1cb6e8c5f8091ddc5045f (diff) |
radv: add radv_image_has_{cmask,fmask,dcc,htile}() helpers
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta_copy.c')
-rw-r--r-- | src/amd/vulkan/radv_meta_copy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_meta_copy.c b/src/amd/vulkan/radv_meta_copy.c index a0ef18ee708..c8140b24dae 100644 --- a/src/amd/vulkan/radv_meta_copy.c +++ b/src/amd/vulkan/radv_meta_copy.c @@ -89,8 +89,8 @@ blit_surf_for_image_level_layer(struct radv_image *image, else if (subres->aspectMask & VK_IMAGE_ASPECT_STENCIL_BIT) format = vk_format_stencil_only(format); - if (!image->surface.dcc_size && - !(image->surface.htile_size && image->tc_compatible_htile)) + if (!radv_image_has_dcc(image) && + !(radv_image_has_htile(image) && image->tc_compatible_htile)) format = vk_format_for_size(vk_format_get_blocksize(format)); return (struct radv_meta_blit2d_surf) { |