diff options
author | Marek Olšák <[email protected]> | 2019-08-28 21:27:05 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-09-09 23:43:03 -0400 |
commit | ef919d8dcb9272ad7b23f5dbd8b7fb2f83393b42 (patch) | |
tree | 3249059b6dc9855b67c72252218e68b3fdbe8df9 /src/gallium/drivers/radeonsi/si_clear.c | |
parent | e4c84d8678010743aece15ed8d33527766badc53 (diff) |
radeonsi: remove redundant si_texture offset and size fields
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_clear.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_clear.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeonsi/si_clear.c b/src/gallium/drivers/radeonsi/si_clear.c index 34a39a0edae..68a0eeb36b4 100644 --- a/src/gallium/drivers/radeonsi/si_clear.c +++ b/src/gallium/drivers/radeonsi/si_clear.c @@ -245,7 +245,7 @@ bool vi_dcc_clear_level(struct si_context *sctx, dcc_offset = 0; } else { dcc_buffer = &tex->buffer.b.b; - dcc_offset = tex->dcc_offset; + dcc_offset = tex->surface.dcc_offset; } if (sctx->chip_class >= GFX9) { @@ -515,7 +515,7 @@ static void si_do_fast_color_clear(struct si_context *sctx, if (tex->buffer.b.b.nr_samples >= 2 && tex->cmask_buffer) { uint32_t clear_value = 0xCCCCCCCC; si_clear_buffer(sctx, &tex->cmask_buffer->b.b, - tex->cmask_offset, tex->surface.cmask_size, + tex->surface.cmask_offset, tex->surface.cmask_size, &clear_value, 4, SI_COHERENCY_CB_META, false); fmask_decompress_needed = true; } @@ -540,7 +540,7 @@ static void si_do_fast_color_clear(struct si_context *sctx, /* Do the fast clear. */ uint32_t clear_value = 0; si_clear_buffer(sctx, &tex->cmask_buffer->b.b, - tex->cmask_offset, tex->surface.cmask_size, + tex->surface.cmask_offset, tex->surface.cmask_size, &clear_value, 4, SI_COHERENCY_CB_META, false); eliminate_needed = true; } @@ -692,7 +692,7 @@ static void si_clear_render_target(struct pipe_context *ctx, struct si_context *sctx = (struct si_context *)ctx; struct si_texture *sdst = (struct si_texture*)dst->texture; - if (dst->texture->nr_samples <= 1 && !sdst->dcc_offset) { + if (dst->texture->nr_samples <= 1 && !sdst->surface.dcc_offset) { si_compute_clear_render_target(ctx, dst, color, dstx, dsty, width, height, render_condition_enabled); return; |