diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-05-15 01:23:24 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-05-22 20:07:21 +0200 |
commit | 0628580eff6110eda71e33ee608c633266bfdeff (patch) | |
tree | b19b0772afc786186afcaf788344cf64661eb3bb /src/amd/vulkan/radv_private.h | |
parent | 62e182acd0b20eeb8ed3628048000b6ea4263f11 (diff) |
radv: Specify semantics of HTILE layout helpers.
And correct implementation to specify only what we support.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 6c4027bbdb8..f9049802939 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -1186,10 +1186,20 @@ struct radv_image { uint32_t clear_value_offset; }; +/* Whether the image has a htile that is known consistent with the contents of + * the image. */ bool radv_layout_has_htile(const struct radv_image *image, VkImageLayout layout); + +/* Whether the image has a htile that is known consistent with the contents of + * the image and is allowed to be in compressed form. + * + * If this is false reads that don't use the htile should be able to return + * correct results. + */ bool radv_layout_is_htile_compressed(const struct radv_image *image, VkImageLayout layout); + bool radv_layout_can_fast_clear(const struct radv_image *image, VkImageLayout layout, unsigned queue_mask); |