anv: Refactor reloc handling in execbuf_add_bo
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Jun 2018 21:59:14 +0000 (14:59 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 1 Jun 2018 23:34:25 +0000 (16:34 -0700)
commitc7be17c8d32ca583be975d8c239585f3a6bbc39b
treee21afed73406275c43fd732b465637fad1c96fef
parent7105b7890ae0ccfab0d30ff037af588dd1af7c96
anv: Refactor reloc handling in execbuf_add_bo

This just separates the reloc list vs. BO set cases and lets us avoid an
allocation if relocs->deps->entries == 0.

Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
src/intel/vulkan/anv_batch_chain.c