projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da33306
)
radv: add a comment from radeonsi before cp dma function.
author
Dave Airlie
<airlied@redhat.com>
Mon, 5 Jun 2017 22:43:38 +0000
(08:43 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Mon, 5 Jun 2017 22:44:01 +0000
(08:44 +1000)
This is just copied over.
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/si_cmd_buffer.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/si_cmd_buffer.c
b/src/amd/vulkan/si_cmd_buffer.c
index 8237155bda8ebc7b46f1ddf3d39b00dd2ff31aa1..fdcf24e631c11abb7efa38ba0254ed5701745c8a 100644
(file)
--- a/
src/amd/vulkan/si_cmd_buffer.c
+++ b/
src/amd/vulkan/si_cmd_buffer.c
@@
-1001,6
+1001,10
@@
static inline unsigned cp_dma_max_byte_count(struct radv_cmd_buffer *cmd_buffer)
return max & ~(SI_CPDMA_ALIGNMENT - 1);
}
+/* Emit a CP DMA packet to do a copy from one buffer to another, or to clear
+ * a buffer. The size must fit in bits [20:0]. If CP_DMA_CLEAR is set, src_va is a 32-bit
+ * clear value.
+ */
static void si_emit_cp_dma(struct radv_cmd_buffer *cmd_buffer,
uint64_t dst_va, uint64_t src_va,
unsigned size, unsigned flags)