anv: Move a comment that got left behind in the u_vector refactor.
authorEric Anholt <eric@anholt.net>
Sat, 21 Jan 2017 05:22:15 +0000 (16:22 +1100)
committerEric Anholt <eric@anholt.net>
Fri, 18 Aug 2017 18:56:58 +0000 (11:56 -0700)
src/intel/vulkan/anv_private.h
src/util/u_vector.c

index de7463797a40b8c9897a72613ae053120426eab9..6b2414429f3465d1fec4558f8c726bde84ed8eec 100644 (file)
@@ -367,14 +367,6 @@ anv_multialloc_alloc2(struct anv_multialloc *ma,
    return anv_multialloc_alloc(ma, alloc ? alloc : parent_alloc, scope);
 }
 
    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;
 
 struct anv_bo {
    uint32_t gem_handle;
 
index 4dc7bc22b6939c76af7140d8689d59a956339857..0de492ccf9a5339ff8481d5575f615c9d61f1c39 100644 (file)
 #include "util/u_math.h"
 #include "util/u_vector.h"
 
 #include "util/u_math.h"
 #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)
 {
 int
 u_vector_init(struct u_vector *vector, uint32_t element_size, uint32_t size)
 {