lima: handle DRM_FORMAT_MOD_INVALID in resource_from_handle()
authorVasily Khoruzhick <anarsoul@gmail.com>
Sun, 8 Dec 2019 20:03:42 +0000 (12:03 -0800)
committerVasily Khoruzhick <anarsoul@gmail.com>
Mon, 9 Dec 2019 15:21:55 +0000 (15:21 +0000)
commit01a451b04d2da9981ea8f16f9d0d6a49fcc6c2df
tree036eaa917d2a822134e4232c83f7cfc11f274153
parent9d78cf4584756e5f881cff757adbccfd6d66c1b6
lima: handle DRM_FORMAT_MOD_INVALID in resource_from_handle()

Assume that resource is tiled if we get DRM_FORMAT_MOD_INVALID
in resource_from_handle() and we don't have RO.

Fixes: 8c12f4e5f24f ("lima: enable tiling")
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/lima_resource.c