diff options
author | Samuel Pitoiset <[email protected]> | 2017-09-27 09:30:46 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-09-27 09:31:24 +0200 |
commit | 3ab0cff32c410fff28fa8f1dc8c2aa5232e2b16a (patch) | |
tree | 168004dcc924f57de8b23d6464ea1538a3cb84d1 /src | |
parent | eba2abf54b214888d6f33c2c4fca53eb98af407a (diff) |
radeonsi: remove useless check in si_blit_decompress_color()
That's unnecessary to double-check that dcc_offset is not 0
because all callers already check that.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_blit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index 159893dfa11..f5ae072f4f8 100644 --- a/src/gallium/drivers/radeonsi/si_blit.c +++ b/src/gallium/drivers/radeonsi/si_blit.c @@ -470,9 +470,11 @@ static void si_blit_decompress_color(struct pipe_context *ctx, "Decompress Color (levels %u - %u, mask 0x%x)\n\n", first_level, last_level, level_mask); - if (rtex->dcc_offset && need_dcc_decompress) { + if (need_dcc_decompress) { custom_blend = sctx->custom_blend_dcc_decompress; + assert(rtex->dcc_offset); + /* disable levels without DCC */ for (int i = first_level; i <= last_level; i++) { if (!vi_dcc_enabled(rtex, i)) |