From 222ddac810fae965507b16702eb4e4c6eee97e16 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 15 Sep 2015 15:59:23 -0700 Subject: [PATCH] anv: Document the index and offset parameters of anv_bo --- src/vulkan/anv_private.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 9115393ad4b..5e4fa35e208 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -206,8 +206,19 @@ anv_vector_finish(struct anv_vector *queue) struct anv_bo { int gem_handle; + + /* Index into the current validation list. This is used by the + * validation list building alrogithm to track which buffers are already + * in the validation list so that we can ensure uniqueness. + */ uint32_t index; + + /* Last known offset. This value is provided by the kernel when we + * execbuf and is used as the presumed offset for the next bunch of + * relocations. + */ uint64_t offset; + uint64_t size; void *map; }; -- 2.30.2