gallium/util: set right dst-dimensions
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Sep 2020 19:36:13 +0000 (21:36 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 29 Sep 2020 10:14:39 +0000 (10:14 +0000)
This should have been the destination surface size, not the dimensions
of the source box. These were the same in the test-case I used while
developing this, but this matters for the GTF framebuffer-blit
functional CTS tests.

Fixes: e8a40715a8b ("gallium/util: add blitter-support for stencil-fallback")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6898>

src/gallium/auxiliary/util/u_blitter.c

index e21076c..cb810af 100644 (file)
@@ -2859,7 +2859,7 @@ util_blitter_stencil_fallback(struct blitter_context *blitter,
 
    blitter_set_common_draw_rect_state(ctx, false,
       util_framebuffer_get_num_samples(&fb_state) > 1);
-   blitter_set_dst_dimensions(ctx, srcbox->width, srcbox->height);
+   blitter_set_dst_dimensions(ctx, dst_view->width, dst_view->height);
 
    pipe->clear_depth_stencil(pipe, dst_view, PIPE_CLEAR_STENCIL, 0.0, 0,
                              dstx, dsty, srcbox->width, srcbox->height,