anv/gpu_memcpy: Rename the gpu_memcpy function
A GPU memcpy function could alternatively be implemented using MI_* commands. Provide more detail into how this one operates in case another memcpy function is created. v2: - Update the commit message. v3: - Use 'memcpy' instead of 'cpy' (Jason Ekstrand) - Shorten 'streamout' to 'so' Suggested-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> (v2) Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -64,7 +64,7 @@ genX(emit_urb_setup)(struct anv_device *device, struct anv_batch *batch,
|
||||
VkShaderStageFlags active_stages,
|
||||
const unsigned entry_size[4]);
|
||||
|
||||
void genX(cmd_buffer_gpu_memcpy)(struct anv_cmd_buffer *cmd_buffer,
|
||||
void genX(cmd_buffer_so_memcpy)(struct anv_cmd_buffer *cmd_buffer,
|
||||
struct anv_bo *dst, uint32_t dst_offset,
|
||||
struct anv_bo *src, uint32_t src_offset,
|
||||
uint32_t size);
|
||||
|
@@ -710,7 +710,7 @@ genX(CmdExecuteCommands)(
|
||||
struct anv_state dst_state = secondary->state.render_pass_states;
|
||||
assert(src_state.alloc_size == dst_state.alloc_size);
|
||||
|
||||
genX(cmd_buffer_gpu_memcpy)(primary, ss_bo, dst_state.offset,
|
||||
genX(cmd_buffer_so_memcpy)(primary, ss_bo, dst_state.offset,
|
||||
ss_bo, src_state.offset,
|
||||
src_state.alloc_size);
|
||||
}
|
||||
|
@@ -52,7 +52,7 @@ gcd_pow2_u64(uint64_t a, uint64_t b)
|
||||
}
|
||||
|
||||
void
|
||||
genX(cmd_buffer_gpu_memcpy)(struct anv_cmd_buffer *cmd_buffer,
|
||||
genX(cmd_buffer_so_memcpy)(struct anv_cmd_buffer *cmd_buffer,
|
||||
struct anv_bo *dst, uint32_t dst_offset,
|
||||
struct anv_bo *src, uint32_t src_offset,
|
||||
uint32_t size)
|
||||
|
Reference in New Issue
Block a user