From 32a2978949a9781d72215aa8308ec216e6c6e561 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 22 Apr 2021 12:46:10 +1000 Subject: [PATCH] lavapipe: fix mipmapped resolves. I updated CTS and found EQP-VK.renderpass.suballocation.multisample_resolve.b8g8r8a8_unorm.samples_4_resolve_level_* was failing. Fixes: b38879f8c5f5 ("vallium: initial import of the vulkan frontend") Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/frontends/lavapipe/lvp_execute.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/frontends/lavapipe/lvp_execute.c b/src/gallium/frontends/lavapipe/lvp_execute.c index e19acb7..fcb1375 100644 --- a/src/gallium/frontends/lavapipe/lvp_execute.c +++ b/src/gallium/frontends/lavapipe/lvp_execute.c @@ -1477,6 +1477,9 @@ static void render_pass_resolve(struct rendering_state *state) info.dst.box = info.src.box; + info.src.level = src_imgv->subresourceRange.baseMipLevel; + info.dst.level = dst_imgv->subresourceRange.baseMipLevel; + state->pctx->blit(state->pctx, &info); } } -- 2.7.4