diff options
author | Marek Olšák <[email protected]> | 2016-04-22 10:26:28 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-04-28 20:16:56 +0200 |
commit | f564b61d33fd8fd23211e1762e2b04c25495b8fd (patch) | |
tree | ae0b805f23bb84a1be1187b6ccd3c875974e38fb /src/gallium/drivers/radeon/r600_texture.c | |
parent | d273ce5259ff924b9c5ec1371872f4fdbac73fd5 (diff) |
radeonsi: rework clear_buffer flags
Changes:
- don't flush DB for fast color clears
- don't flush any caches for initial clears
- remove the flag from si_copy_buffer, always assume shader coherency
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_texture.c')
-rw-r--r-- | src/gallium/drivers/radeon/r600_texture.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 7e58490e663..41bc48a5f7e 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -717,7 +717,7 @@ static void r600_texture_allocate_htile(struct r600_common_screen *rscreen, R600_ERR("Failed to create buffer object for htile buffer.\n"); } else { r600_screen_clear_buffer(rscreen, &rtex->htile_buffer->b.b, 0, - htile_size, 0, true); + htile_size, 0, R600_COHERENCY_NONE); } } @@ -892,13 +892,13 @@ r600_texture_create_object(struct pipe_screen *screen, /* Initialize the cmask to 0xCC (= compressed state). */ r600_screen_clear_buffer(rscreen, &rtex->cmask_buffer->b.b, rtex->cmask.offset, rtex->cmask.size, - 0xCCCCCCCC, true); + 0xCCCCCCCC, R600_COHERENCY_NONE); } if (rtex->dcc_offset) { r600_screen_clear_buffer(rscreen, &rtex->resource.b.b, rtex->dcc_offset, rtex->surface.dcc_size, - 0xFFFFFFFF, true); + 0xFFFFFFFF, R600_COHERENCY_NONE); } /* Initialize the CMASK base register value. */ @@ -1623,7 +1623,7 @@ void evergreen_do_fast_color_clear(struct r600_common_context *rctx, rctx->clear_buffer(&rctx->b, &tex->resource.b.b, tex->dcc_offset, tex->surface.dcc_size, - reset_value, true); + reset_value, R600_COHERENCY_CB_META); if (clear_words_needed) tex->dirty_level_mask |= 1 << fb->cbufs[i]->u.tex.level; @@ -1640,7 +1640,8 @@ void evergreen_do_fast_color_clear(struct r600_common_context *rctx, /* Do the fast clear. */ rctx->clear_buffer(&rctx->b, &tex->cmask_buffer->b.b, - tex->cmask.offset, tex->cmask.size, 0, true); + tex->cmask.offset, tex->cmask.size, 0, + R600_COHERENCY_CB_META); tex->dirty_level_mask |= 1 << fb->cbufs[i]->u.tex.level; } |