Skip to content

lima: don't use resource_from_handle while creating scanout

Erico Nunes requested to merge enunes/mesa:lima-scanout-import into main

resource_from_handle implementations create an additional reference to the scanout resource, which caused lima to leak those resources after commit ad4d7ca8 (which has been backported into stable as 2adab724)

Do as the other drivers do and import the bo directly while creating the scanount resource.

Cc: 22.3 mesa-stable

Closes: #8198 (closed)

Merge request reports