<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jun 6, 2017 at 9:10 AM, Ian Romanick <span dir="ltr"><<a href="mailto:idr@freedesktop.org" target="_blank">idr@freedesktop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 06/05/2017 06:03 PM, Jason Ekstrand wrote:<br>
> On Mon, Jun 5, 2017 at 5:22 PM, Ian Romanick <<a href="mailto:idr@freedesktop.org">idr@freedesktop.org</a><br>
</span><span class="">> <mailto:<a href="mailto:idr@freedesktop.org">idr@freedesktop.org</a>>> wrote:<br>
><br>
> From: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a><br>
</span>> <mailto:<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.<wbr>com</a>>><br>
<span class="">><br>
> We call convert_to_single_slice so they may end up with a non-trivial<br>
> offset that needs to be taken into account.<br>
><br>
> v2 (idr): Also set needs_src_offset. Suggested by Jason.<br>
><br>
> Fixes<br>
> ES2-CTS.functional.texture.<wbr>specification.basic_<wbr>copyteximage2d.cube_rgba<br>
> and<br>
> ES2-CTS.functional.texture.<wbr>specification.basic_<wbr>copytexsubimage2d.cube_rgba<br>
> on G45.<br>
><br>
><br>
> Don't we also need the patch which makes us respect needs_src_offset for<br>
> the bilinear filter case?<br>
<br>
</span>I had expected that we would, but it didn't seem to matter for this<br>
test. I was going to wait on the other patches until the whole series<br>
is ready, but I could send out the speculative fixes sooner.<br></blockquote><div><br></div><div>I don't think the other fix is speculative. It just only happens to get triggered by generatemipmaps tests. If we had blitframebuffers tests which blit into a cube, they'd trigger it too.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> Signed-off-by: Ian Romanick <<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.com</a><br>
> <mailto:<a href="mailto:ian.d.romanick@intel.com">ian.d.romanick@intel.<wbr>com</a>>><br>
> Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=101284" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=101284</a><br>
<div><div class="h5">> <<a href="https://bugs.freedesktop.org/show_bug.cgi?id=101284" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=101284</a>><br>
> ---<br>
> src/intel/blorp/blorp_blit.c | 8 ++++++--<br>
> 1 file changed, 6 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/src/intel/blorp/blorp_blit.c b/src/intel/blorp/blorp_blit.c<br>
> index d93cde2..e48e5da 100644<br>
> --- a/src/intel/blorp/blorp_blit.c<br>
> +++ b/src/intel/blorp/blorp_blit.c<br>
> @@ -1672,11 +1672,15 @@ try_blorp_blit(struct blorp_batch *batch,<br>
> /* The MinLOD and MinimumArrayElement don't work properly for<br>
> cube maps.<br>
> * Convert them to a single slice on gen4.<br>
> */<br>
> - if (params->dst.surf.usage & ISL_SURF_USAGE_CUBE_BIT)<br>
> + if (params->dst.surf.usage & ISL_SURF_USAGE_CUBE_BIT) {<br>
> blorp_surf_convert_to_single_<wbr>slice(batch->blorp->isl_dev,<br>
> ¶ms->dst);<br>
> + wm_prog_key->need_dst_offset = true;<br>
> + }<br>
><br>
> - if (params->src.surf.usage & ISL_SURF_USAGE_CUBE_BIT)<br>
> + if (params->src.surf.usage & ISL_SURF_USAGE_CUBE_BIT) {<br>
> blorp_surf_convert_to_single_<wbr>slice(batch->blorp->isl_dev,<br>
> ¶ms->src);<br>
> + wm_prog_key->need_src_offset = true;<br>
> + }<br>
> }<br>
><br>
> if (devinfo->gen > 6 &&<br>
> --<br>
> 2.9.4<br>
><br>
> ______________________________<wbr>_________________<br>
> mesa-dev mailing list<br>
</div></div>> <a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a> <mailto:<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.<wbr>freedesktop.org</a>><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
> <<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.<wbr>org/mailman/listinfo/mesa-dev</a>><br>
</blockquote></div><br></div></div>