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.
This commit is contained in:
Eric Anholt 2018-04-12 13:46:24 -07:00
parent c2e159d050
commit 3cdd055ed2
1 changed files with 1 additions and 0 deletions

View File

@ -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 */