mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 12:10:09 +01:00
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 <samuel.pitoiset@gmail.com> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
eba2abf54b
commit
3ab0cff32c
1 changed files with 3 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue