Mesa (master): gallium/util: set right dst-dimensions
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Sep 29 10:31:04 UTC 2020
Module: Mesa
Branch: master
Commit: a21e1e615cd5a9bce4391914fe0d4cec7acc3552
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a21e1e615cd5a9bce4391914fe0d4cec7acc3552
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Mon Sep 28 21:36:13 2020 +0200
gallium/util: set right dst-dimensions
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 at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6898>
---
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 e21076c99f3..cb810af91d5 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,
More information about the mesa-commit
mailing list