[Mesa-dev] [PATCH] i965/gen8: Allow 16k viewport when blitting stencil

Anuj Phogat anuj.phogat at gmail.com
Thu Aug 14 10:43:47 PDT 2014


On Thu, Aug 14, 2014 at 9:09 AM, Topi Pohjolainen <
topi.pohjolainen at intel.com> wrote:

> From: Topi Pohjolainen <topi.pohjolainen at gmail.com>
>
> Fixes gles3 conformance tests:
>
> framebuffer_blit_functionality_negative_height_blit
> framebuffer_blit_functionality_negative_width_blit
> framebuffer_blit_functionality_negative_dimensions_blit
> framebuffer_blit_functionality_magnifying_blit
> framebuffer_blit_functionality_multisampled_to_singlesampled_blit
>
> Signed-off-by: Topi Pohjolainen <topi.pohjolainen at gmail.com>
> ---
>  src/mesa/drivers/dri/i965/gen8_viewport_state.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/gen8_viewport_state.c
> b/src/mesa/drivers/dri/i965/gen8_viewport_state.c
> index 9c89532..eda9aad 100644
> --- a/src/mesa/drivers/dri/i965/gen8_viewport_state.c
> +++ b/src/mesa/drivers/dri/i965/gen8_viewport_state.c
> @@ -94,6 +94,13 @@ gen8_upload_sf_clip_viewport(struct brw_context *brw)
>        float gbx = maximum_guardband_extent / ctx->ViewportArray[i].Width;
>        float gby = maximum_guardband_extent / ctx->ViewportArray[i].Height;
>
> +      /**
> +       * Stencil blits require W-tiled to be treated as Y-tiled needing in
> +       * turn width to be programmed twice the original.
> +       */
> +      if (brw->meta_in_progress)
> +         gbx *= 2;
> +
>        /* _NEW_VIEWPORT: Guardband Clipping */
>        vp[8]  = -gbx; /* x-min */
>        vp[9]  =  gbx; /* x-max */
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


Tested-by: Anuj Phogat <anuj.phogat at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140814/5b432c27/attachment.html>


More information about the mesa-dev mailing list