gallium/util: do not perform n^2 stencil blits

We already loop n times here, no point in doing n instances as well.

Fixes: e8a40715a8 ("gallium/util: add blitter-support for stencil-fallback")
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8301>
This commit is contained in:
Erik Faye-Lund 2021-01-04 10:35:36 +01:00 committed by Marge Bot
parent 32a6a13052
commit 96ceca33c1
1 changed files with 1 additions and 1 deletions

View File

@ -2918,7 +2918,7 @@ util_blitter_stencil_fallback(struct blitter_context *blitter,
dstbox->x, dstbox->y,
dstbox->x + dstbox->width,
dstbox->y + dstbox->height,
0, stencil_bits,
0, 1,
UTIL_BLITTER_ATTRIB_TEXCOORD_XYZW,
&coord);
}