lima: use linear layout for shared buffers if modifier is not specified
authorVasily Khoruzhick <anarsoul@gmail.com>
Tue, 10 Dec 2019 02:23:17 +0000 (18:23 -0800)
committerVasily Khoruzhick <anarsoul@gmail.com>
Fri, 10 Jan 2020 01:13:47 +0000 (01:13 +0000)
commita533d1d4c607543fc1e3ca427eba50e9602f6fe2
treeeed2cb7e5d25e5206b0a3976aca3599db7c334ad
parent87e0dd68f50748938e4abe0c6961b6704798afa3
lima: use linear layout for shared buffers if modifier is not specified

Use linear layout for shared buffers if modifier is not specified
and use linear layout when importing buffers with invalid modifier.

Fixes: 01a451b04d2d ("lima: handle DRM_FORMAT_MOD_INVALID in resource_from_handle()")
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/lima_resource.c