mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
radv: enable surface protected capability
Pass protected support flag to wsi_device to enable surface protected capability when radv_physical_device::has_tmz_support. Signed-off-by: Julia Zhang <Julia.Zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40619>
This commit is contained in:
parent
60bd766299
commit
bfc54d444d
1 changed files with 4 additions and 0 deletions
|
|
@ -93,6 +93,10 @@ radv_init_wsi(struct radv_physical_device *pdev)
|
|||
pdev->wsi_device.set_memory_ownership = radv_wsi_set_memory_ownership;
|
||||
pdev->wsi_device.get_blit_queue = radv_wsi_get_prime_blit_queue;
|
||||
|
||||
for (uint32_t i = 0; i < ARRAY_SIZE(pdev->wsi_device.supports_protected); i++) {
|
||||
pdev->wsi_device.supports_protected[i] = radv_tmz_enabled(pdev);
|
||||
}
|
||||
|
||||
wsi_device_setup_syncobj_fd(&pdev->wsi_device, pdev->local_fd);
|
||||
|
||||
pdev->vk.wsi_device = &pdev->wsi_device;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue