iris: add a comment about aux-tt alignment requirements

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>
This commit is contained in:
Lionel Landwerlin 2023-05-23 09:57:20 +03:00 committed by Marge Bot
parent 195fbffac8
commit 7ffd0f409e

View 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);