Skip to content
Snippets Groups Projects
Commit 5ec6b6e9 authored by Roman Stratiienko's avatar Roman Stratiienko Committed by Marge Bot
Browse files

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: default avatarRoman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
Reviewed-by: default avatarErico Nunes <nunes.erico@gmail.com>
Part-of: <mesa/mesa!12362>
parent 221871fb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment