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:
parent
32a6a13052
commit
96ceca33c1
|
@ -2918,7 +2918,7 @@ util_blitter_stencil_fallback(struct blitter_context *blitter,
|
||||||
dstbox->x, dstbox->y,
|
dstbox->x, dstbox->y,
|
||||||
dstbox->x + dstbox->width,
|
dstbox->x + dstbox->width,
|
||||||
dstbox->y + dstbox->height,
|
dstbox->y + dstbox->height,
|
||||||
0, stencil_bits,
|
0, 1,
|
||||||
UTIL_BLITTER_ATTRIB_TEXCOORD_XYZW,
|
UTIL_BLITTER_ATTRIB_TEXCOORD_XYZW,
|
||||||
&coord);
|
&coord);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue