Mesa (main): radv: remove remaining dead code related to the old sync code
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 6 09:33:28 UTC 2022
Module: Mesa
Branch: main
Commit: da0c708d79cddc14799e1bd5a4cb5cd8611d5fea
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=da0c708d79cddc14799e1bd5a4cb5cd8611d5fea
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Mon Jan 3 09:17:13 2022 +0100
radv: remove remaining dead code related to the old sync code
Fixes: 91fe0b5629d ("radv: Delete lots of sync code.")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14375>
---
src/amd/vulkan/radv_device.c | 10 ----------
src/amd/vulkan/radv_private.h | 4 ----
2 files changed, 14 deletions(-)
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 80aed510054..cae08c750f4 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -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;
};
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index 8aa4ce2c347..5f48e9c3835 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -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;
More information about the mesa-commit
mailing list