From e93344288b7e6ae35fba9b7898388e4b6c1f2698 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Sun, 6 Dec 2020 22:23:17 +0200 Subject: anv: add a comment describing has_relocs field Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand Part-of: --- src/intel/vulkan/anv_batch_chain.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index fd197930aaa..5ea24bb3945 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -1110,6 +1110,11 @@ struct anv_execbuf { /* Allocated length of the 'objects' and 'bos' arrays */ uint32_t array_length; + /* Indicates whether any of the command buffers have relocations. This + * doesn't not necessarily mean we'll need the kernel to process them. It + * might be that a previous execbuf has already placed things in the VMA + * and we can make i915 skip the relocations. + */ bool has_relocs; const VkAllocationCallbacks * alloc; -- cgit v1.2.3