668653f830
Just as with all other TLB operations, we can only use the TLB if the render area is aligned to tile boundaries. If it is not, then the operation would overwrite pixels outside the render area, which is not allowed. In this case, we can't even emit a previous TLB load to fix this because the TLB has the multisampled attachment, not the resolve attachment, which is just a destination buffer for the tile store. Because the condition for tile alignment has to be determined for each subpass, we handle this by storing this information in the attachment state of the command buffer with the start of each subpass. We store whether the attachment is to be resolved and whether it can use the TLB (considering tile alignment restrictions). Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14752>