<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Sep 9, 2016 at 11:18 AM, Chad Versace <span dir="ltr"><<a href="mailto:chadversary@chromium.org" target="_blank">chadversary@chromium.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Fri 09 Sep 2016, Jason Ekstrand wrote:<br>
> The restriction that Y-tiled surfaces must have valign == 4 only aplies to<br>
> render targets but we were applying it universally. This causes problems<br>
> if R32G32B32_SFLOAT is used because it requires valign == 2; this should be<br>
</span> ^^^^^^^^^^^^^^^^<br>
That isl format doesn't exist. Did you mean R32B32B32_FLOAT (sans S)?<br></blockquote><div><br></div><div>I did.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span><br>
> okay because you can't render to that format.<br>
><br>
> Signed-off-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net" target="_blank">jason@jlekstrand.net</a>><br>
> Cc: Chad Versace <<a href="mailto:chad@kiwitree.net" target="_blank">chad@kiwitree.net</a>><br>
> ---<br>
> src/intel/isl/isl_gen7.c | 3 ++-<br>
> 1 file changed, 2 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/src/intel/isl/isl_gen7.c b/src/intel/isl/isl_gen7.c<br>
> index 02273f8..f3d8428 100644<br>
> --- a/src/intel/isl/isl_gen7.c<br>
> +++ b/src/intel/isl/isl_gen7.c<br>
> @@ -354,7 +354,8 @@ gen7_choose_valign_el(const struct isl_device *dev,<br>
> */<br>
> if (isl_surf_usage_is_depth(info-<wbr>>usage) ||<br>
> info->samples > 1 ||<br>
> - tiling == ISL_TILING_Y0) {<br>
> + ((info->usage & ISL_SURF_USAGE_RENDER_TARGET_B<wbr>IT) &&<br>
> + tiling == ISL_TILING_Y0)) {<br>
> require_valign4 = true;<br>
> }<br>
<br>
</span>Did the buggy code trigger the assertion on line 390?<br>
assert(!require_valign2 || !require_valign4);<br>
If not, then something is suspicious.<br></blockquote><div><br></div><div>Yes, that's exactly what happened<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Fix the commit message and this is<br>
Reviewed-by: Chad Versace <<a href="mailto:chadversary@chromium.org" target="_blank">chadversary@chromium.org></a></blockquote><div> <br></div><div>Thanks!<br></div></div></div></div>