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>
(cherry picked from commit 96ceca33c1)
This commit is contained in:
Erik Faye-Lund 2021-01-04 10:35:36 +01:00 committed by Dylan Baker
parent cf5fe357d6
commit 588cf800be
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
"description": "gallium/util: do not perform n^2 stencil blits",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "e8a40715a8bcd479c0c33eab411d276777153a0e"
},

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);
}