diff options
author | Alex Deucher <[email protected]> | 2013-04-24 12:26:52 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2013-04-24 18:54:31 -0400 |
commit | 5bbeae7a3d3be17d44b1bc851872a107a75c393b (patch) | |
tree | 1f9910aa85a122f562b1e9ee0fb6a5c501910199 /src/gallium/drivers/r600/r600_pipe.h | |
parent | 9d0ad4c2f2eb89bab82194478180df570cc7aa4e (diff) |
r600g: use CP DMA for buffer clears on evergreen+
Lighter weight then using streamout. Only evergreen
and newer asics support embedded data as src with
CP DMA.
Reviewed-by: Jerome Glisse <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 1dbed80ae40..eb25e357a75 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -829,6 +829,9 @@ void r600_cp_dma_copy_buffer(struct r600_context *rctx, struct pipe_resource *dst, uint64_t dst_offset, struct pipe_resource *src, uint64_t src_offset, unsigned size); +void evergreen_cp_dma_clear_buffer(struct r600_context *rctx, + struct pipe_resource *dst, uint64_t offset, + unsigned size, uint32_t clear_value); void r600_dma_copy(struct r600_context *rctx, struct pipe_resource *dst, struct pipe_resource *src, |