OSDN Git Service

radv: clean up radv_vi_dcc_enabled()
[android-x86/external-mesa.git] / src / amd / vulkan / radv_private.h
index f954d67..97f4cf6 100644 (file)
@@ -1384,12 +1384,6 @@ bool radv_layout_dcc_compressed(const struct radv_image *image,
                                VkImageLayout layout,
                                unsigned queue_mask);
 
-static inline bool
-radv_vi_dcc_enabled(const struct radv_image *image, unsigned level)
-{
-       return image->surface.dcc_size && level < image->surface.num_dcc_levels;
-}
-
 /**
  * Return whether the image has CMASK metadata for color surfaces.
  */
@@ -1418,6 +1412,16 @@ radv_image_has_dcc(const struct radv_image *image)
 }
 
 /**
+ * Return whether DCC metadata is enabled for a level.
+ */
+static inline bool
+radv_dcc_enabled(const struct radv_image *image, unsigned level)
+{
+       return radv_image_has_dcc(image) &&
+              level < image->surface.num_dcc_levels;
+}
+
+/**
  * Return whether the image has HTILE metadata for depth surfaces.
  */
 static inline bool