[Mesa-dev] [PATCH] anv: drop unused zero macro.

Dave Airlie airlied at gmail.com
Wed Oct 19 03:36:43 UTC 2016


From: Dave Airlie <airlied at redhat.com>

I can't see this being used anywhere.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/intel/vulkan/anv_private.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 0e25827..3fe9d7d 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -163,8 +163,6 @@ anv_clear_mask(uint32_t *inout_mask, uint32_t clear_mask)
    memcpy((dest), (src), (count) * sizeof(*(src))); \
 })
 
-#define zero(x) (memset(&(x), 0, sizeof(x)))
-
 /* Define no kernel as 1, since that's an illegal offset for a kernel */
 #define NO_KERNEL 1
 
-- 
2.5.5



More information about the mesa-dev mailing list