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