summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2020-12-06 22:23:17 +0200
committerMarge Bot <eric+marge@anholt.net>2021-02-09 21:08:52 +0000
commite93344288b7e6ae35fba9b7898388e4b6c1f2698 (patch)
tree8c8d9b7a28cec81f73eeb4967cb5ccb6d3af41e0
parent2ef3dca47637f224efdf67625cf7963985cc097d (diff)
anv: add a comment describing has_relocs field
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8934>
-rw-r--r--src/intel/vulkan/anv_batch_chain.c5
1 files changed, 5 insertions, 0 deletions
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;