5fed6bee19
v3d_resource_from_handle when importing a DRM_FORMAT_MOD_INVALID considered that if we had a render-only device the resource layout was linear and if we didn't have render-only the resource layout was tiled. This change honors the resource creation with the SCANOUT flag independently of the availability of the render-only for the DRM_FORMAT_MOD_INVALID modifier. It also fixes most of the failing piglit text for: spec@ext_image_dma_buf_import@ext_image_dma_buf_import.* Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11594 Cc: mesa-stable Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30946>