From 0584bb450e882df34ff65a756393980e4e4b4d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Mon, 31 Jul 2023 11:53:48 -0700 Subject: [PATCH] anv: Nuke unused READ_ONCE() from anv_batch_chain.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Only genX_cmd_buffer.c makes use of READ_ONCE() but that file also defines it so it can be removed from anv_batch_chain.c. Signed-off-by: José Roberto de Souza Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_batch_chain.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index a25f9cc4f18..234da63fa9a 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -113,8 +113,6 @@ anv_reloc_list_grow_deps(struct anv_reloc_list *list, return VK_SUCCESS; } -#define READ_ONCE(x) (*(volatile __typeof__(x) *)&(x)) - VkResult anv_reloc_list_add_bo(struct anv_reloc_list *list, const VkAllocationCallbacks *alloc,