iris: add a comment about aux-tt alignment requirements
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 23 May 2023 06:57:20 +0000 (09:57 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 26 May 2023 12:58:13 +0000 (12:58 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23198>

src/gallium/drivers/iris/iris_resource.c

index 8be3695..182944d 100644 (file)
@@ -1253,6 +1253,9 @@ iris_resource_create_for_image(struct pipe_screen *pscreen,
                 iris_get_aux_clear_color_state_size(screen, res);
    }
 
+   /* The ISL alignment already includes AUX-TT requirements, so no additional
+    * attention required here :)
+    */
    uint32_t alignment = MAX2(4096, res->surf.alignment_B);
    res->bo =
       iris_bo_alloc(screen->bufmgr, name, bo_size, alignment, memzone, flags);