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>
This commit is contained in:
Lionel Landwerlin 2020-12-06 22:23:17 +02:00 committed by Marge Bot
parent 2ef3dca476
commit e93344288b

View file

@ -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;