<p dir="ltr"></p>
<p dir="ltr">On Jul 28, 2016 2:41 AM, "Pohjolainen, Topi" <<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>> wrote:<br>
><br>
> On Tue, Jul 26, 2016 at 03:02:16PM -0700, Jason Ekstrand wrote:<br>
> > The sampling hardware can handle them ok. It just looks at the tiling to<br>
> > determine whether it's the new gen9 1-D layout or the old one. The render<br>
> > hardware isn't so smart.<br>
><br>
> To clarify, this is not needed at this point but prepares for the upcoming<br>
> patches (i.e, prevents regression there)?</p>
<p dir="ltr">Yup. When we start using the actual surf with min lod and stay layer, 1-D depth surfaces become a bit of a problem.</p>
<p dir="ltr">> > ---<br>
> > src/mesa/drivers/dri/i965/brw_blorp.c | 6 ++++++<br>
> > 1 file changed, 6 insertions(+)<br>
> ><br>
> > diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c<br>
> > index d9b5554..2cf0f99 100644<br>
> > --- a/src/mesa/drivers/dri/i965/brw_blorp.c<br>
> > +++ b/src/mesa/drivers/dri/i965/brw_blorp.c<br>
> > @@ -371,6 +371,12 @@ brw_blorp_emit_surface_state(struct brw_context *brw,<br>
> ><br>
> > struct isl_surf surf = surface->surf;<br>
> ><br>
> > + if (surf.dim == ISL_SURF_DIM_1D &&<br>
> > + surf.dim_layout == ISL_DIM_LAYOUT_GEN4_2D) {<br>
> > + assert(surf.logical_level0_px.height == 1);<br>
> > + surf.dim = ISL_SURF_DIM_2D;<br>
> > + }<br>
> > +<br>
> > union isl_color_value clear_color = { .u32 = { 0, 0, 0, 0 } };<br>
> ><br>
> > const struct isl_surf *aux_surf = NULL;<br>
> > --<br>
> > 2.5.0.400.gff86faf<br>
> ><br>
> > _______________________________________________<br>
> > mesa-dev mailing list<br>
> > <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
> > <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br></p>