anv: For pinned BOs, skip relocations, but track bo usage
authorScott D Phillips <scott.d.phillips@intel.com>
Tue, 13 Mar 2018 17:57:39 +0000 (10:57 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Jun 2018 21:27:10 +0000 (14:27 -0700)
commit27cc68d9e90c8d2031383fa6dc28fe910a351eb6
tree605ec95eb4117756ec3ab60aad6b71f6677d53e8
parentc7db0ed4e94dce563d722e1b098684fbd7315d51
anv: For pinned BOs, skip relocations, but track bo usage

References to pinned BOs won't need to be relocated at a later
point, so just write the final value of the reference into the bo
directly.

Add a `set` to the relocation lists for tracking dependencies that
were previously tracked by relocations. When a batch is executed, we
add the referenced pinned BOs to the exec list.

v2: - visit bos from the dependency set in a deterministic order (Jason)
v3: - compar => compare, drat (Jason)
    - Reworded commit message, provided by (Jordan)

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_batch_chain.c
src/intel/vulkan/anv_private.h