Searched refs:CP_DMA_ALIGNMENT (Results 1 – 2 of 2) sorted by relevance
/external/mesa3d/src/gallium/drivers/radeonsi/ |
D | si_cp_dma.c | 32 #define CP_DMA_ALIGNMENT 32 macro 34 #define CP_DMA_MAX_BYTE_COUNT ((1 << 21) - CP_DMA_ALIGNMENT) 271 unsigned scratch_size = CP_DMA_ALIGNMENT * 2; in si_cp_dma_realign_engine() 273 assert(size < CP_DMA_ALIGNMENT); in si_cp_dma_realign_engine() 294 si_emit_cp_dma(sctx, va, va + CP_DMA_ALIGNMENT, size, dma_flags, in si_cp_dma_realign_engine() 336 if (size % CP_DMA_ALIGNMENT) in si_copy_buffer() 337 realign_size = CP_DMA_ALIGNMENT - (size % CP_DMA_ALIGNMENT); in si_copy_buffer() 343 if (src_offset % CP_DMA_ALIGNMENT) { in si_copy_buffer() 344 skipped_size = CP_DMA_ALIGNMENT - (src_offset % CP_DMA_ALIGNMENT); in si_copy_buffer()
|
/external/mesa3d/src/amd/vulkan/ |
D | si_cmd_buffer.c | 745 #define CP_DMA_ALIGNMENT 32 macro 747 #define CP_DMA_MAX_BYTE_COUNT ((1 << 21) - CP_DMA_ALIGNMENT) 861 unsigned buf_size = CP_DMA_ALIGNMENT * 2; in si_cp_dma_realign_engine() 864 assert(size < CP_DMA_ALIGNMENT); in si_cp_dma_realign_engine() 866 radv_cmd_buffer_upload_alloc(cmd_buffer, buf_size, CP_DMA_ALIGNMENT, &offset, &ptr); in si_cp_dma_realign_engine() 873 si_emit_cp_dma_copy_buffer(cmd_buffer, va, va + CP_DMA_ALIGNMENT, size, in si_cp_dma_realign_engine() 891 if (size % CP_DMA_ALIGNMENT) in si_cp_dma_buffer_copy() 892 realign_size = CP_DMA_ALIGNMENT - (size % CP_DMA_ALIGNMENT); in si_cp_dma_buffer_copy() 898 if (src_va % CP_DMA_ALIGNMENT) { in si_cp_dma_buffer_copy() 899 skipped_size = CP_DMA_ALIGNMENT - (src_va % CP_DMA_ALIGNMENT); in si_cp_dma_buffer_copy()
|