mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
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 commit96ceca33c1)
This commit is contained in:
parent
cf5fe357d6
commit
588cf800be
2 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue