[Mesa-dev] [PATCH] anv: Move a comment that got left behind in the u_vector refactor.

Eric Anholt eric at anholt.net
Fri Jun 30 20:16:19 UTC 2017


---
 src/intel/vulkan/anv_private.h | 8 --------
 src/util/u_vector.c            | 9 +++++++++
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 573778dad556..f1de08b32f35 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -366,14 +366,6 @@ anv_multialloc_alloc2(struct anv_multialloc *ma,
    return anv_multialloc_alloc(ma, alloc ? alloc : parent_alloc, scope);
 }
 
-/**
- * A dynamically growable, circular buffer.  Elements are added at head and
- * removed from tail. head and tail are free-running uint32_t indices and we
- * only compute the modulo with size when accessing the array.  This way,
- * number of bytes in the queue is always head - tail, even in case of
- * wraparound.
- */
-
 struct anv_bo {
    uint32_t gem_handle;
 
diff --git a/src/util/u_vector.c b/src/util/u_vector.c
index 37c4245ebe45..a83109e1e275 100644
--- a/src/util/u_vector.c
+++ b/src/util/u_vector.c
@@ -22,6 +22,15 @@
  */
 #include "util/u_vector.h"
 
+/** @file u_vector.c
+ *
+ * A dynamically growable, circular buffer.  Elements are added at head and
+ * removed from tail. head and tail are free-running uint32_t indices and we
+ * only compute the modulo with size when accessing the array.  This way,
+ * number of bytes in the queue is always head - tail, even in case of
+ * wraparound.
+ */
+
 int
 u_vector_init(struct u_vector *vector, uint32_t element_size, uint32_t size)
 {
-- 
2.11.0



More information about the mesa-dev mailing list