Module: Mesa Branch: master Commit: 3cdd055ed24d97ff79221ac427102a58b9b28d6c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3cdd055ed24d97ff79221ac427102a58b9b28d6c
Author: Eric Anholt <e...@anholt.net> Date: Thu Apr 12 13:46:24 2018 -0700 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. --- src/gallium/drivers/vc5/vc5_resource.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/vc5/vc5_resource.c b/src/gallium/drivers/vc5/vc5_resource.c index c8c99cf487..9c714b4183 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 */ _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit