Mesa (master): i965/fb: Use meta path for stencil blits
Topi Pohjolainen
tpohjola at kemper.freedesktop.org
Thu May 15 18:45:30 UTC 2014
Module: Mesa
Branch: master
Commit: b18f6b9b86531581da567eaa400923e35e22006d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b18f6b9b86531581da567eaa400923e35e22006d
Author: Topi Pohjolainen <topi.pohjolainen at intel.com>
Date: Sat Apr 19 17:11:10 2014 +0300
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 at lists.freedesktop.org>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/intel_fbo.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_fbo.c
index 61c24ef..5ff4263 100644
--- a/src/mesa/drivers/dri/i965/intel_fbo.c
+++ b/src/mesa/drivers/dri/i965/intel_fbo.c
@@ -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,
More information about the mesa-commit
mailing list