tu: Allow GMEM on A7XX when TU_DEBUG=gmem

GMEM is entirely non-functional on A7XX, however, it is useful to be
able to test intermediary commits as support is added. This is still
put behind an explicit `TU_DEBUG` gmem flag to avoid regressions from
bisecting sysmem issues.

Signed-off-by: Mark Collins <mark@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26461>
This commit is contained in:
Mark Collins 2024-02-16 10:50:45 +00:00 committed by Marge Bot
parent 3dbc15e74e
commit 9759222282

View file

@ -870,7 +870,7 @@ use_sysmem_rendering(struct tu_cmd_buffer *cmd,
return true;
/* A7XX TODO: Add gmem support */
if (cmd->device->physical_device->info->chip >= 7)
if (cmd->device->physical_device->info->chip >= 7 && !TU_DEBUG(GMEM))
return true;
/* can't fit attachments into gmem */