diff options
author | Samuel Pitoiset <[email protected]> | 2018-04-06 16:17:26 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-04-09 11:21:26 +0200 |
commit | b0f8ad189c9b2f147d87477548b1f5547fdd6630 (patch) | |
tree | 9354b5fc0d5eaba0f7bb8c39f4b38133950d578b /src/amd/vulkan/radv_image.c | |
parent | 95d5ad80e9d9670a7dd8c6fd7891b97fd006b44d (diff) |
radv: add radv_image_is_tc_compat_htile() helper
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_image.c')
-rw-r--r-- | src/amd/vulkan/radv_image.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 86d97ff83bf..b35df1d172a 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -336,8 +336,8 @@ si_set_mutable_tex_desc_fields(struct radv_device *device, meta_va = gpu_address + image->dcc_offset; if (chip_class <= VI) meta_va += base_level_info->dcc_offset; - } else if(!is_storage_image && image->tc_compatible_htile && - radv_image_has_htile(image)) { + } else if (!is_storage_image && + radv_image_is_tc_compat_htile(image)) { meta_va = gpu_address + image->htile_offset; } @@ -488,7 +488,7 @@ si_make_texture_descriptor(struct radv_device *device, /* S8 with either Z16 or Z32 HTILE need a special format. */ if (device->physical_device->rad_info.chip_class >= GFX9 && vk_format == VK_FORMAT_S8_UINT && - image->tc_compatible_htile) { + radv_image_is_tc_compat_htile(image)) { if (image->vk_format == VK_FORMAT_D32_SFLOAT_S8_UINT) data_format = V_008F14_IMG_DATA_FORMAT_S8_32; else if (image->vk_format == VK_FORMAT_D16_UNORM_S8_UINT) @@ -1201,7 +1201,7 @@ bool radv_layout_has_htile(const struct radv_image *image, VkImageLayout layout, unsigned queue_mask) { - if (radv_image_has_htile(image) && image->tc_compatible_htile) + if (radv_image_is_tc_compat_htile(image)) return layout != VK_IMAGE_LAYOUT_GENERAL; return radv_image_has_htile(image) && @@ -1214,7 +1214,7 @@ bool radv_layout_is_htile_compressed(const struct radv_image *image, VkImageLayout layout, unsigned queue_mask) { - if (radv_image_has_htile(image) && image->tc_compatible_htile) + if (radv_image_is_tc_compat_htile(image)) return layout != VK_IMAGE_LAYOUT_GENERAL; return radv_image_has_htile(image) && |