radv: remove remaining dead code related to the old sync code
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 3 Jan 2022 08:17:13 +0000 (09:17 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Jan 2022 09:13:50 +0000 (09:13 +0000)
Fixes: 91fe0b5629d ("radv: Delete lots of sync code.")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14375>

src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_private.h

index 80aed51..cae08c7 100644 (file)
@@ -3267,11 +3267,6 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
 
    device->mem_cache = radv_pipeline_cache_from_handle(pc);
 
-   if (u_cnd_monotonic_init(&device->timeline_cond)) {
-      result = VK_ERROR_INITIALIZATION_FAILED;
-      goto fail_mem_cache;
-   }
-
    device->force_aniso = MIN2(16, radv_get_int_debug_option("RADV_TEX_ANISO", -1));
    if (device->force_aniso >= 0) {
       fprintf(stderr, "radv: Forcing anisotropy filter to %ix\n",
@@ -3281,8 +3276,6 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
    *pDevice = radv_device_to_handle(device);
    return VK_SUCCESS;
 
-fail_mem_cache:
-   radv_DestroyPipelineCache(radv_device_to_handle(device), pc, NULL);
 fail_meta:
    radv_device_finish_meta(device);
 fail:
@@ -3353,8 +3346,6 @@ radv_DestroyDevice(VkDevice _device, const VkAllocationCallbacks *pAllocator)
 
    radv_destroy_shader_arenas(device);
 
-   u_cnd_monotonic_destroy(&device->timeline_cond);
-
    radv_thread_trace_finish(device);
 
    radv_spm_finish(device);
@@ -4312,7 +4303,6 @@ struct radv_deferred_queue_submission {
 
    struct list_head queue_pending_list;
    uint32_t submission_wait_count;
-   struct radv_timeline_waiter *wait_nodes;
 
    struct list_head processing_list;
 };
index 8aa4ce2..5f48e9c 100644 (file)
@@ -826,10 +826,6 @@ struct radv_device {
 
    struct radv_device_border_color_data border_color_data;
 
-   /* Condition variable for legacy timelines, to notify waiters when a
-    * new point gets submitted. */
-   struct u_cnd_monotonic timeline_cond;
-
    /* Thread trace. */
    struct ac_thread_trace_data thread_trace;