Mesa (master): iris: Drop old comment on clear color BO allocation

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Aug 19 22:40:15 UTC 2020


Module: Mesa
Branch: master
Commit: 8b2fc9195988ba59f629a8e720ccba0d9bf0d532
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8b2fc9195988ba59f629a8e720ccba0d9bf0d532

Author: Nanley Chery <nanley.g.chery at intel.com>
Date:   Wed Jul 15 17:42:26 2020 -0700

iris: Drop old comment on clear color BO allocation

Iris hasn't used a clear color BO on gen9 since commit 1cd13ccee7b.

Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6311>

---

 src/gallium/drivers/iris/iris_resource.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/gallium/drivers/iris/iris_resource.c b/src/gallium/drivers/iris/iris_resource.c
index 012c6a9cf63..795569f55f7 100644
--- a/src/gallium/drivers/iris/iris_resource.c
+++ b/src/gallium/drivers/iris/iris_resource.c
@@ -639,11 +639,7 @@ iris_resource_configure_aux(struct iris_screen *screen,
       size = padded_aux_size + res->aux.extra_aux.surf.size_B;
    }
 
-   /* Allocate space in the buffer for storing the clear color. On modern
-    * platforms (gen > 9), we can read it directly from such buffer.
-    *
-    * On gen <= 9, we are going to store the clear color on the buffer
-    * anyways, and copy it back to the surface state during state emission.
+   /* Allocate space in the buffer for storing the indirect clear color.
     *
     * Also add some padding to make sure the fast clear color state buffer
     * starts at a 4K alignment. We believe that 256B might be enough, but due



More information about the mesa-commit mailing list