freedreno: Blit all array levels when uncompressing UBWC.

Fixes regressions in GLES CTS's format_reintepret once we enable UBWC
with mipmaps.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3059>
This commit is contained in:
Eric Anholt 2019-12-12 14:20:49 -08:00 committed by Marge Bot
parent 6b586d5a48
commit ddb0b35b76
1 changed files with 4 additions and 1 deletions

View File

@ -265,7 +265,10 @@ fd_try_shadow_resource(struct fd_context *ctx, struct fd_resource *rsc,
set_box(box.height, u_minify(prsc->height0, l));
set_box(box.depth, u_minify(prsc->depth0, l));
do_blit(ctx, &blit, fallback);
for (int i = 0; i < prsc->array_size; i++) {
set_box(box.z, i);
do_blit(ctx, &blit, fallback);
}
}
/* deal w/ current level specially, since we might need to split