Parcourir la source

anv: Move a comment that got left behind in the u_vector refactor.

tags/17.3-branchpoint
Eric Anholt il y a 9 ans
Parent
révision
9caba0f16f
2 fichiers modifiés avec 9 ajouts et 8 suppressions
  1. 0
    8
      src/intel/vulkan/anv_private.h
  2. 9
    0
      src/util/u_vector.c

+ 0
- 8
src/intel/vulkan/anv_private.h Voir le fichier

@@ -367,14 +367,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;


+ 9
- 0
src/util/u_vector.c Voir le fichier

@@ -25,6 +25,15 @@
#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)
{

Chargement…
Annuler
Enregistrer