diff options
author | Niels Ole Salscheider <[email protected]> | 2014-03-17 18:48:06 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-03-20 17:21:16 +0100 |
commit | 71254732db12c8813c002425b5c1b7c31bf56f65 (patch) | |
tree | 2076bcc0e7d873f39094af0710dfafbd023208a0 /src/gallium/drivers/radeonsi/si_state.h | |
parent | acf55e73252e46fa51378ef4b23c94a89902ae1c (diff) |
radeonsi: Implement DMA blit
This code is a slightly modified version of evergreen_dma_blit (and
evergreen_dma_copy as well as evergreen_dma_copy_tile).
It would be nice to share some of the code in the long term.
I have reused some "cik"-prefixed functions that also return the right
value for SI. I am not sure if they should be renamed.
v2: Marek> removed gfx.flush in si_dma_copy_tile
Signed-off-by: Niels Ole Salscheider <[email protected]>
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h index f91d407dae3..c0806008e2f 100644 --- a/src/gallium/drivers/radeonsi/si_state.h +++ b/src/gallium/drivers/radeonsi/si_state.h @@ -30,6 +30,8 @@ #include "si_pm4.h" #include "../radeon/r600_pipe_common.h" +struct si_screen; + struct si_state_blend { struct si_pm4_state pm4; uint32_t cb_target_mask; @@ -227,6 +229,11 @@ int si_shader_select(struct pipe_context *ctx, struct si_pipe_shader_selector *sel); void si_init_state_functions(struct si_context *sctx); void si_init_config(struct si_context *sctx); +unsigned cik_bank_wh(unsigned bankwh); +unsigned cik_db_pipe_config(struct si_screen *sscreen, unsigned tile_mode); +unsigned cik_macro_tile_aspect(unsigned macro_tile_aspect); +unsigned cik_tile_split(unsigned tile_split); +unsigned si_tile_mode_index(struct r600_texture *rtex, unsigned level, bool stencil); /* si_state_draw.c */ extern const struct r600_atom si_atom_cache_flush; |