<div dir="ltr">I'd mildly prefer streamout_memcpy to streamout_cpy.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 13, 2017 at 11:42 AM, Nanley Chery <span dir="ltr"><<a href="mailto:nanleychery@gmail.com" target="_blank">nanleychery@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A GPU memcpy function could alternatively be implemented using MI_*<br>
commands. Provide more detail into how this one operates in case another<br>
memcpy function is created.<br>
<br>
v2: Update the commit message.<br>
<br>
Suggested-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br>
Signed-off-by: Nanley Chery <<a href="mailto:nanley.g.chery@intel.com">nanley.g.chery@intel.com</a>><br>
---<br>
 src/intel/vulkan/anv_genX.h        | 8 ++++----<br>
 src/intel/vulkan/genX_cmd_<wbr>buffer.c | 6 +++---<br>
 src/intel/vulkan/genX_gpu_<wbr>memcpy.c | 8 ++++----<br>
 3 files changed, 11 insertions(+), 11 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_genX.h b/src/intel/vulkan/anv_genX.h<br>
index 67147b0e92..7b1487b543 100644<br>
--- a/src/intel/vulkan/anv_genX.h<br>
+++ b/src/intel/vulkan/anv_genX.h<br>
@@ -64,10 +64,10 @@ genX(emit_urb_setup)(struct anv_device *device, struct anv_batch *batch,<br>
                      VkShaderStageFlags active_stages,<br>
                      const unsigned entry_size[4]);<br>
<br>
-void genX(cmd_buffer_gpu_memcpy)(<wbr>struct anv_cmd_buffer *cmd_buffer,<br>
-                                 struct anv_bo *dst, uint32_t dst_offset,<br>
-                                 struct anv_bo *src, uint32_t src_offset,<br>
-                                 uint32_t size);<br>
+void genX(cmd_buffer_streamout_cpy)<wbr>(struct anv_cmd_buffer *cmd_buffer,<br>
+                                    struct anv_bo *dst, uint32_t dst_offset,<br>
+                                    struct anv_bo *src, uint32_t src_offset,<br>
+                                    uint32_t size);<br>
<br>
 void genX(blorp_exec)(struct blorp_batch *batch,<br>
                       const struct blorp_params *params);<br>
diff --git a/src/intel/vulkan/genX_cmd_<wbr>buffer.c b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
index 69f1956d4e..8fb1a73b63 100644<br>
--- a/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
+++ b/src/intel/vulkan/genX_cmd_<wbr>buffer.c<br>
@@ -710,9 +710,9 @@ genX(CmdExecuteCommands)(<br>
          struct anv_state dst_state = secondary->state.render_pass_<wbr>states;<br>
          assert(src_state.alloc_size == dst_state.alloc_size);<br>
<br>
-         genX(cmd_buffer_gpu_memcpy)(<wbr>primary, ss_bo, dst_state.offset,<br>
-                                     ss_bo, src_state.offset,<br>
-                                     src_state.alloc_size);<br>
+         genX(cmd_buffer_streamout_cpy)<wbr>(primary, ss_bo, dst_state.offset,<br>
+                                        ss_bo, src_state.offset,<br>
+                                        src_state.alloc_size);<br>
       }<br>
<br>
       anv_cmd_buffer_add_secondary(<wbr>primary, secondary);<br>
diff --git a/src/intel/vulkan/genX_gpu_<wbr>memcpy.c b/src/intel/vulkan/genX_gpu_<wbr>memcpy.c<br>
index 3cbc7235cf..3f79ff7e7d 100644<br>
--- a/src/intel/vulkan/genX_gpu_<wbr>memcpy.c<br>
+++ b/src/intel/vulkan/genX_gpu_<wbr>memcpy.c<br>
@@ -52,10 +52,10 @@ gcd_pow2_u64(uint64_t a, uint64_t b)<br>
 }<br>
<br>
 void<br>
-genX(cmd_buffer_gpu_memcpy)(<wbr>struct anv_cmd_buffer *cmd_buffer,<br>
-                            struct anv_bo *dst, uint32_t dst_offset,<br>
-                            struct anv_bo *src, uint32_t src_offset,<br>
-                            uint32_t size)<br>
+genX(cmd_buffer_streamout_<wbr>cpy)(struct anv_cmd_buffer *cmd_buffer,<br>
+                               struct anv_bo *dst, uint32_t dst_offset,<br>
+                               struct anv_bo *src, uint32_t src_offset,<br>
+                               uint32_t size)<br>
 {<br>
    if (size == 0)<br>
       return;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.13.1<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>