Module: Mesa
Branch: main
Commit: 0584bb450e882df34ff65a756393980e4e4b4d4d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0584bb450e882df34ff65a756393980e4e4b4d4d

Author: José Roberto de Souza <[email protected]>
Date:   Mon Jul 31 11:53:48 2023 -0700

anv: Nuke unused READ_ONCE() from anv_batch_chain.c

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 <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24411>

---

 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,

Reply via email to