v3dv: avoid prime blit path when presenting WSI images

This allows us to present WSI images directly rather than going through
a blit path, improving performance.

This improves vkQuake performance at 1080p by 10-20%.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Iago Toral Quiroga 2020-07-15 09:31:39 +02:00 committed by Marge Bot
parent 97891898c3
commit 08193cc56f
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ v3dv_wsi_init(struct v3dv_physical_device *physical_device)
v3dv_physical_device_to_handle(physical_device),
v3dv_wsi_proc_addr,
&physical_device->instance->alloc,
-1, NULL, false);
physical_device->display_fd, NULL, false);
if (result != VK_SUCCESS)
return result;