From a21e1e615cd5a9bce4391914fe0d4cec7acc3552 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 28 Sep 2020 21:36:13 +0200 Subject: [PATCH] gallium/util: set right dst-dimensions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Part-of: --- src/gallium/auxiliary/util/u_blitter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index e21076c..cb810af 100644 --- a/src/gallium/auxiliary/util/u_blitter.c +++ b/src/gallium/auxiliary/util/u_blitter.c @@ -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, -- 2.7.4