<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Nov 7, 2018 at 10:38 AM Pohjolainen, Topi <<a href="mailto:topi.pohjolainen@gmail.com">topi.pohjolainen@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Oct 12, 2018 at 01:46:42PM -0500, Jason Ekstrand wrote:<br>
> ---<br>
> src/intel/isl/isl_gen7.c | 9 +++++++++<br>
> 1 file changed, 9 insertions(+)<br>
> <br>
> diff --git a/src/intel/isl/isl_gen7.c b/src/intel/isl/isl_gen7.c<br>
> index f6f7e1ba7dc..fe420e4fbd8 100644<br>
> --- a/src/intel/isl/isl_gen7.c<br>
> +++ b/src/intel/isl/isl_gen7.c<br>
> @@ -217,6 +217,15 @@ isl_gen6_filter_tiling(const struct isl_device *dev,<br>
> if (isl_surf_usage_is_depth(info->usage)) {<br>
> /* Depth requires Y. */<br>
> *flags &= ISL_TILING_ANY_Y_MASK;<br>
> +<br>
> + /* The Yf and Ys tilings for 1D can't be easily faked as a 2D surface<br>
> + * because there's no calculable qpitch.<br>
<br>
Why is this problem for depth only?<br></blockquote><div><br></div><div>Because the depth hardware doesn't allow 1D. For classic Y, we fake it as a 2D surface with a height of 1. We can't do that with Yf and Ys so we have to disallow them.</div><div><br></div><div>Same applies to stencil but it's always W so it doesn't matter.</div><div><br></div><div>--Jason<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> + *<br>
> + * TODO: In theory, on could fake it with surface offset tricks but<br>
> + * that's currently being left as an exercise to the reader.<br>
> + */<br>
> + if (info->dim == ISL_SURF_DIM_1D)<br>
> + *flags &= ~ISL_TILING_STD_Y_MASK;<br>
> }<br>
> <br>
> /* Separate stencil requires W tiling, and W tiling requires separate<br>
> -- <br>
> 2.19.1<br>
> <br>
> _______________________________________________<br>
> mesa-dev mailing list<br>
> <a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>