We were leaving the field undefined, which tripped me up later.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21004>
return true;
/* can't fit attachments into gmem */
- if (!cmd->state.pass->gmem_pixels[cmd->state.gmem_layout] ||
- !cmd->state.tiling->possible)
+ if (!cmd->state.tiling->possible)
return true;
if (cmd->state.framebuffer->layers > 1)
/* will force to sysmem, don't bother trying to have a valid tile config
* TODO: just skip all GMEM stuff when sysmem is forced?
*/
- if (!pass->gmem_pixels[gmem_layout])
+ if (!pass->gmem_pixels[gmem_layout]) {
+ tiling->possible = false;
return;
+ }
if (TU_DEBUG(FORCEBIN)) {
/* start with 2x2 tiles */