<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Nov 7, 2016 at 2:27 PM Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is the fourth iteration of my attempt to rework relocation handling<br class="gmail_msg">
and do relocations in userspace.  I'm finally getting pretty happy with<br class="gmail_msg">
this and I think I'll probably merge this version if there are no further<br class="gmail_msg">
objections.<br class="gmail_msg">
<br class="gmail_msg">
Jason Ekstrand (9):<br class="gmail_msg">
  anv: Add a cmd_buffer_execbuf helper<br class="gmail_msg">
  anv: Don't presume to know what address is in a surface relocation<br class="gmail_msg">
  anv: Add a new bo_pool_init helper<br class="gmail_msg">
  anv/allocator: Simplify anv_scratch_pool<br class="gmail_msg">
  anv: Initialize anv_bo::offset to -1<br class="gmail_msg">
  anv/batch_chain: Improve write_reloc<br class="gmail_msg">
  anv: Add an anv_execbuf helper struct<br class="gmail_msg">
  anv/batch: Move last_ss_pool_bo_offset to the command buffer<br class="gmail_msg">
  anv: Move relocation handling from EndCommandBuffer to QueueSubmit<br class="gmail_msg">
<br class="gmail_msg"></blockquote><div><br></div><div>That all looks good, happy that you were able to get this idea working. I would keep the execbuf bo list around in the VkCmdBuffer structure instead of allocating and freeing the exact same amount on each execbuf, but I know you like to malloc. For the series:</div><div><br></div><div>Reviewed-by: Kristian H. Kristensen <<a href="mailto:hoegsberg@google.com">hoegsberg@google.com</a>></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Kristian Høgsberg (1):<br class="gmail_msg">
  anv: Do relocations in userspace before execbuf ioctl<br class="gmail_msg">
<br class="gmail_msg">
 src/intel/vulkan/anv_allocator.c   | 118 +++++-------<br class="gmail_msg">
 src/intel/vulkan/anv_batch_chain.c | 386 ++++++++++++++++++++++++++-----------<br class="gmail_msg">
 src/intel/vulkan/anv_device.c      |  49 +++--<br class="gmail_msg">
 src/intel/vulkan/anv_intel.c       |  11 +-<br class="gmail_msg">
 src/intel/vulkan/anv_private.h     |  43 +++--<br class="gmail_msg">
 src/intel/vulkan/genX_cmd_buffer.c |  11 --<br class="gmail_msg">
 6 files changed, 384 insertions(+), 234 deletions(-)<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
2.5.0.400.gff86faf<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
mesa-dev mailing list<br class="gmail_msg">
<a href="mailto:mesa-dev@lists.freedesktop.org" class="gmail_msg" target="_blank">mesa-dev@lists.freedesktop.org</a><br class="gmail_msg">
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br class="gmail_msg">
</blockquote></div></div>