From: Eric Anholt Date: Thu, 12 Apr 2018 20:46:24 +0000 (-0700) Subject: broadcom/vc5: Treat imports of DRM_FORMAT_MOD_INVALID BOs as linear. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3cdd055ed24d97ff79221ac427102a58b9b28d6c;p=mesa.git broadcom/vc5: Treat imports of DRM_FORMAT_MOD_INVALID BOs as linear. We don't have any kernel metadata about BO tiling, so this probably is all we should do for the moment. --- diff --git a/src/gallium/drivers/vc5/vc5_resource.c b/src/gallium/drivers/vc5/vc5_resource.c index c8c99cf4870..9c714b4183b 100644 --- a/src/gallium/drivers/vc5/vc5_resource.c +++ b/src/gallium/drivers/vc5/vc5_resource.c @@ -694,6 +694,7 @@ vc5_resource_from_handle(struct pipe_screen *pscreen, switch (whandle->modifier) { case DRM_FORMAT_MOD_LINEAR: + case DRM_FORMAT_MOD_INVALID: rsc->tiled = false; break; /* XXX: UIF */