Mesa (master): anv: add a comment describing has_relocs field
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 9 21:24:08 UTC 2021
Module: Mesa
Branch: master
Commit: e93344288b7e6ae35fba9b7898388e4b6c1f2698
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e93344288b7e6ae35fba9b7898388e4b6c1f2698
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Sun Dec 6 22:23:17 2020 +0200
anv: add a comment describing has_relocs field
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8934>
---
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;
More information about the mesa-commit
mailing list