<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 9, 2016 at 11:26 AM, Kristian Høgsberg <span dir="ltr"><<a href="mailto:hoegsberg@gmail.com" target="_blank">hoegsberg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><span class=""><div dir="ltr">On Mon, Nov 7, 2016 at 2:27 PM Jason Ekstrand <<a href="mailto:jason@jlekstrand.net" target="_blank">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="m_-1988114872482855312gmail_msg">
and do relocations in userspace.  I'm finally getting pretty happy with<br class="m_-1988114872482855312gmail_msg">
this and I think I'll probably merge this version if there are no further<br class="m_-1988114872482855312gmail_msg">
objections.<br class="m_-1988114872482855312gmail_msg">
<br class="m_-1988114872482855312gmail_msg">
Jason Ekstrand (9):<br class="m_-1988114872482855312gmail_msg">
  anv: Add a cmd_buffer_execbuf helper<br class="m_-1988114872482855312gmail_msg">
  anv: Don't presume to know what address is in a surface relocation<br class="m_-1988114872482855312gmail_msg">
  anv: Add a new bo_pool_init helper<br class="m_-1988114872482855312gmail_msg">
  anv/allocator: Simplify anv_scratch_pool<br class="m_-1988114872482855312gmail_msg">
  anv: Initialize anv_bo::offset to -1<br class="m_-1988114872482855312gmail_msg">
  anv/batch_chain: Improve write_reloc<br class="m_-1988114872482855312gmail_msg">
  anv: Add an anv_execbuf helper struct<br class="m_-1988114872482855312gmail_msg">
  anv/batch: Move last_ss_pool_bo_offset to the command buffer<br class="m_-1988114872482855312gmail_msg">
  anv: Move relocation handling from EndCommandBuffer to QueueSubmit<br class="m_-1988114872482855312gmail_msg">
<br class="m_-1988114872482855312gmail_msg"></blockquote><div><br></div></span><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></div></blockquote><div><br></div><div>Actually, what I've thought about doing is to keep it around in the queue.  re-submitting command buffers isn't that common of a thing but if we kept it in the queue, we'd barely ever malloc once it gets warmed up.  That's a refactor for another day.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>Reviewed-by: Kristian H. Kristensen <<a href="mailto:hoegsberg@google.com" target="_blank">hoegsberg@google.com</a>></div></div></div></blockquote><div><br></div><div>Thanks!<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Kristian Høgsberg (1):<br class="m_-1988114872482855312gmail_msg">
  anv: Do relocations in userspace before execbuf ioctl<br class="m_-1988114872482855312gmail_msg">
<br class="m_-1988114872482855312gmail_msg">
 src/intel/vulkan/anv_<wbr>allocator.c   | 118 +++++-------<br class="m_-1988114872482855312gmail_msg">
 src/intel/vulkan/anv_batch_<wbr>chain.c | 386 ++++++++++++++++++++++++++----<wbr>-------<br class="m_-1988114872482855312gmail_msg">
 src/intel/vulkan/anv_device.<wbr>c      |  49 +++--<br class="m_-1988114872482855312gmail_msg">
 src/intel/vulkan/anv_intel.c       |  11 +-<br class="m_-1988114872482855312gmail_msg">
 src/intel/vulkan/anv_private.<wbr>h     |  43 +++--<br class="m_-1988114872482855312gmail_msg">
 src/intel/vulkan/genX_cmd_<wbr>buffer.c |  11 --<br class="m_-1988114872482855312gmail_msg">
 6 files changed, 384 insertions(+), 234 deletions(-)<br class="m_-1988114872482855312gmail_msg">
<br class="m_-1988114872482855312gmail_msg">
--<br class="m_-1988114872482855312gmail_msg">
2.5.0.400.gff86faf<br class="m_-1988114872482855312gmail_msg">
<br class="m_-1988114872482855312gmail_msg"></span>
______________________________<wbr>_________________<br class="m_-1988114872482855312gmail_msg">
mesa-dev mailing list<br class="m_-1988114872482855312gmail_msg">
<a href="mailto:mesa-dev@lists.freedesktop.org" class="m_-1988114872482855312gmail_msg" target="_blank">mesa-dev@lists.freedesktop.org</a><br class="m_-1988114872482855312gmail_msg">
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" class="m_-1988114872482855312gmail_msg" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br class="m_-1988114872482855312gmail_msg">
</blockquote></div></div>
</blockquote></div><br></div></div>