lavapipe: fix mipmapped resolves.
authorDave Airlie <airlied@redhat.com>
Thu, 22 Apr 2021 02:46:10 +0000 (12:46 +1000)
committerMarge Bot <eric+marge@anholt.net>
Thu, 22 Apr 2021 03:01:33 +0000 (03:01 +0000)
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 <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10400>

src/gallium/frontends/lavapipe/lvp_execute.c

index e19acb7..fcb1375 100644 (file)
@@ -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);
    }
 }