radv: Drop create_sync_for_memory
Also, stop setting wsi_device::signal_semaphore/fence_with_memory because those cause the WSI code to call the function we just dropped. Since the core WSI code is now setting dummy syncs by default, we don't need any of this anymore. Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4037>
This commit is contained in:
parent
3ed70d775c
commit
e60ff7f1aa
|
@ -2998,15 +2998,6 @@ radv_device_finish_vrs_image(struct radv_device *device)
|
|||
&device->meta_state.alloc);
|
||||
}
|
||||
|
||||
static VkResult
|
||||
radv_create_sync_for_memory(struct vk_device *device,
|
||||
VkDeviceMemory memory,
|
||||
bool signal_memory,
|
||||
struct vk_sync **sync_out)
|
||||
{
|
||||
return vk_sync_create(device, &vk_sync_dummy_type, 0, 1, sync_out);
|
||||
}
|
||||
|
||||
static enum radv_force_vrs
|
||||
radv_parse_vrs_rates(const char *str)
|
||||
{
|
||||
|
@ -3283,7 +3274,6 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
|
|||
simple_mtx_init(&device->trace_mtx, mtx_plain);
|
||||
|
||||
device->ws = physical_device->ws;
|
||||
device->vk.create_sync_for_memory = radv_create_sync_for_memory;
|
||||
vk_device_set_drm_fd(&device->vk, device->ws->get_fd(device->ws));
|
||||
|
||||
/* With update after bind we can't attach bo's to the command buffer
|
||||
|
|
|
@ -99,8 +99,6 @@ radv_init_wsi(struct radv_physical_device *physical_device)
|
|||
physical_device->wsi_device.supports_modifiers = physical_device->rad_info.gfx_level >= GFX9;
|
||||
physical_device->wsi_device.set_memory_ownership = radv_wsi_set_memory_ownership;
|
||||
physical_device->wsi_device.get_buffer_blit_queue = radv_wsi_get_prime_blit_queue;
|
||||
physical_device->wsi_device.signal_semaphore_with_memory = true;
|
||||
physical_device->wsi_device.signal_fence_with_memory = true;
|
||||
|
||||
wsi_device_setup_syncobj_fd(&physical_device->wsi_device, physical_device->local_fd);
|
||||
|
||||
|
|
Loading…
Reference in New Issue