mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
panvk: Free drm device in can_present_on_device
Fixes:08da41f2f1("panvk: override can_present_on_device") Signed-off-by: Kitlith <kitlith@kitl.pw> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com> (cherry picked from commit4de41bf27d) Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39745>
This commit is contained in:
parent
5f5a3691ef
commit
82d63c9282
2 changed files with 6 additions and 2 deletions
|
|
@ -1044,7 +1044,7 @@
|
|||
"description": "panvk: Free drm device in can_present_on_device",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "08da41f2f198571d7aac23c75bcf076517047226",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -50,7 +50,11 @@ panvk_can_present_on_device(VkPhysicalDevice pdevice, int fd)
|
|||
return false;
|
||||
/* Allow on-device presentation for all devices with bus type PLATFORM.
|
||||
* Other device types such as PCI or USB should use the PRIME blit path. */
|
||||
return device->bustype == DRM_BUS_PLATFORM;
|
||||
bool match = device->bustype == DRM_BUS_PLATFORM;
|
||||
|
||||
drmFreeDevice(&device);
|
||||
|
||||
return match;
|
||||
}
|
||||
|
||||
VkResult
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue