[Mesa-dev] [PATCH 23/26] i965: Restructure fast clear eligibility decision

Jason Ekstrand jason at jlekstrand.net
Tue Nov 1 14:38:34 UTC 2016


On Tue, Nov 1, 2016 at 2:01 AM, Pohjolainen, Topi <
topi.pohjolainen at gmail.com> wrote:

> On Tue, Nov 01, 2016 at 07:24:50AM +0200, Pohjolainen, Topi wrote:
> > On Mon, Oct 31, 2016 at 02:51:06PM -0700, Jason Ekstrand wrote:
> > >    On Mon, Oct 31, 2016 at 2:38 PM, Jason Ekstrand
> > >    <[1]jason at jlekstrand.net> wrote:
> > >
> > >    On Tue, Oct 11, 2016 at 12:26 PM, Topi Pohjolainen
> > >    <[2]topi.pohjolainen at gmail.com> wrote:
> > >
> > >      From: Ben Widawsky <[3]ben at bwidawsk.net>
> > >      Signed-off-by: Ben Widawsky <[4]benjamin.widawsky at intel.com>
> > >      ---
> > >       src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 51
> > >      ++++++++++++++++++---------
> > >       1 file changed, 34 insertions(+), 17 deletions(-)
> > >      diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> > >      b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> > >      index f51392f..a41a654 100644
> > >      --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> > >      +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> > >      @@ -224,33 +224,50 @@ intel_miptree_supports_non_msr
> > >      t_fast_clear(struct brw_context *brw,
> > >             return false;
> > >          }
> > >      +   /* Handle the hardware restrictions...
> > >      +    *
> > >      +    * All GENs have the following restriction: "MCS buffer for
> > >      non-MSRT is
> > >      +    * supported only for RT formats 32bpp, 64bpp, and 128bpp."
> > >      +    *
> > >      +    * From the HSW PRM Volume 7: 3D-Media-GPGPU, page 652: (Color
> > >      Clear of
> > >      +    * Non-MultiSampler Render Target Restrictions) Support is for
> > >      non-mip-mapped
> > >      +    * and non-array surface types only.
> > >      +    *
> > >      +    * From the BDW PRM Volume 7: 3D-Media-GPGPU, page 649: (Color
> > >      Clear of
> > >      +    * Non-MultiSampler Render Target Restriction). Mip-mapped and
> > >      arrayed
> > >      +    * surfaces are supported with MCS buffer layout with these
> > >      alignments in the
> > >      +    * RT space: Horizontal Alignment = 256 and Vertical
> Alignment =
> > >      128.
> > >      +    *
> > >      +    * Skylake and above (docs are currently unpublished) are
> > >      similar to BDW with
> > >
> > >    Heh... Old patch.  We should put in the real PRM citation.
> >
> > Do you have one specifically in mind? I haven't found any other piece
> > directly telling that arrayed and mipmapped is supported.
>
> I think I understood what you meant, you were referring to the SKL part
> which
> should be:
>
>     * From the SKL PRM Volume 7: 3D-Media-GPGPU, page 632: (Color Clear of
>     * Non-MultiSampler Render Target Restriction). Mip-mapped and arrayed
>     * surfaces are supported with MCS buffer layout with these alignments
> in
>     * the RT space: Horizontal Alignment = 128 and Vertical Alignment = 64.
>

Yes, that would be the one
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161101/5be7f6dc/attachment-0003.html>


More information about the mesa-dev mailing list