[Mesa-dev] [PATCH 13/13] i965/fb: Use meta path for stencil blits

Kenneth Graunke kenneth at whitecape.org
Fri May 9 16:52:32 PDT 2014


On 05/09/2014 01:28 AM, Topi Pohjolainen wrote:
> This is effective only on gen8 for now as previous generations still
> go through blorp.
> 
> Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> ---
>  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 2d68de8..58b7043 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,
> 

Hi Topi,

You'll also want to hook this up into intel_miptree_updownsample somehow
- there's still a class of tests (such as "copy-pixels -samples=4
-auto") that hit the blorp path and assert.

Could you send a patch to do that as well?

Thanks a ton!
--Ken

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140509/0acf6675/attachment.sig>


More information about the mesa-dev mailing list