Mesa (main): anv: Drop code from get_blorp_surf_for_anv_buffer

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Nov 30 14:06:56 UTC 2021


Module: Mesa
Branch: main
Commit: 18cd0a5409e619a5aa245c023941fc5894a9747f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=18cd0a5409e619a5aa245c023941fc5894a9747f

Author: Nanley Chery <nanley.g.chery at intel.com>
Date:   Fri Nov 12 15:04:04 2021 -0500

anv: Drop code from get_blorp_surf_for_anv_buffer

The code to handle ASTC surfaces hasn't been needed since commit
dd92179a72 ("anv: Canonicalize buffer formats for image/buffer copies").

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13881>

---

 src/intel/vulkan/anv_blorp.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c
index a4f5ff15039..d290df9dc51 100644
--- a/src/intel/vulkan/anv_blorp.c
+++ b/src/intel/vulkan/anv_blorp.c
@@ -161,23 +161,8 @@ get_blorp_surf_for_anv_buffer(struct anv_device *device,
                               struct blorp_surf *blorp_surf,
                               struct isl_surf *isl_surf)
 {
-   const struct isl_format_layout *fmtl =
-      isl_format_get_layout(format);
    bool ok UNUSED;
 
-   /* ASTC is the only format which doesn't support linear layouts.
-    * Create an equivalently sized surface with ISL to get around this.
-    */
-   if (fmtl->txc == ISL_TXC_ASTC) {
-      /* Use an equivalently sized format */
-      format = ISL_FORMAT_R32G32B32A32_UINT;
-      assert(fmtl->bpb == isl_format_get_layout(format)->bpb);
-
-      /* Shrink the dimensions for the new format */
-      width = DIV_ROUND_UP(width, fmtl->bw);
-      height = DIV_ROUND_UP(height, fmtl->bh);
-   }
-
    *blorp_surf = (struct blorp_surf) {
       .surf = isl_surf,
       .addr = {



More information about the mesa-commit mailing list