lima: Implement lima_resource_get_param() callback
Currently stride, offset, modifier is obtained by invoking lima_resource_get_handle() with WINSYS_HANDLE_TYPE_KMS. Before commit 47f000c1 this path was working. Obtained handle was simply ignored by DRI frontend and only requested data used. After commit 47f000c1 such requests started to fail when DRI is initialized using KMSRO and resource has no scanout data. When lima_resource_get_param() is implemented, it will be used in a first place to obtain resource data. Fixes: 47f000c1 ("lima: fail in get_handle(TYPE_KMS) without a scanout resource") Signed-off-by:Roman Stratiienko <r.stratiienko@gmail.com> Reviewed-by:
Simon Ser <contact@emersion.fr> Reviewed-by:
Erico Nunes <nunes.erico@gmail.com> Part-of: <mesa/mesa!12362> (cherry picked from commit 5ec6b6e9)