mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
i965/fb: Use meta path for stencil blits
This is effective only on gen8 for now as previous generations still
go through blorp.
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit b18f6b9b86)
This commit is contained in:
parent
eb2ef1641c
commit
62f1509070
1 changed files with 9 additions and 0 deletions
|
|
@ -879,6 +879,15 @@ intel_blit_framebuffer(struct gl_context *ctx,
|
|||
if (mask == 0x0)
|
||||
return;
|
||||
|
||||
if (mask & GL_STENCIL_BUFFER_BIT) {
|
||||
brw_meta_fbo_stencil_blit(brw_context(ctx),
|
||||
srcX0, srcY0, srcX1, srcY1,
|
||||
dstX0, dstY0, dstX1, dstY1);
|
||||
mask &= ~GL_STENCIL_BUFFER_BIT;
|
||||
if (mask == 0x0)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Try using the BLT engine. */
|
||||
mask = intel_blit_framebuffer_with_blitter(ctx,
|
||||
srcX0, srcY0, srcX1, srcY1,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue