lima: relax checks of imported BO
authorVasily Khoruzhick <anarsoul@gmail.com>
Wed, 17 Mar 2021 06:41:03 +0000 (23:41 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Mar 2021 04:23:23 +0000 (04:23 +0000)
commit5762aa4e56a526bc1d251b81da1548ad1ccd1c29
treef162306c3b4a1dab3a347536f3e10d19088e3450
parentb06f121fcc18e0567b0ef40ee95ebd2804343612
lima: relax checks of imported BO

We don't need stride of imported buffer to be equal to calculated
stride if the buffer is linear.

Fixes #3070

Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9646>
src/gallium/drivers/lima/lima_resource.c