<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 22, 2017 at 5:23 AM, Andres Gomez <span dir="ltr"><<a href="mailto:agomez@igalia.com" target="_blank">agomez@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jason, 76e2f390f9863a35 didn't land in 17.1 so I understand this is not<br>
really needed there and we only need it for 17.2.<br>
<br>
WDYT?<br><div><div class="h5"></div></div></blockquote><div><br></div><div>This only applies to 17.2<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
On Sat, 2017-08-19 at 11:07 -0700, Jason Ekstrand wrote:<br>
> In 76e2f390f9863a35, when Topi switched num_samples from 0 to 1 for<br>
> single-sampled, he accidentally switched the last parameter in the call<br>
> to miptree_create_for_teximage from 0 to 1 thinking it was num_samples<br>
> when it was actually layout_flags.  Switching from 0 to 1 added the<br>
> MIPTREE_LAYOUT_ACCELERATED_<wbr>UPLOAD flag which causes us to allocate a<br>
> busy BO instead of an idle one.  This caused the subsequent CPU upload<br>
> to consistently stall.  The end result was a 15% performance drop in the<br>
> SynMark v7 DrvRes microbenchmark.  This restores the old behavior and<br>
> fixes the performance regression.<br>
><br>
> Cc: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
> Cc: Topi Pohjolainen <<a href="mailto:topi.pohjolainen@intel.com">topi.pohjolainen@intel.com</a>><br>
> Fixes: 76e2f390f9863a356d1419982dec70<wbr>5260d67eff<br>
> Bugzilla: <a href="https://bugs.freedesktop.org/102260" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/<wbr>102260</a><br>
> Cc: <a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.<wbr>org</a><br>
> ---<br>
>  src/mesa/drivers/dri/i965/<wbr>intel_tex.c | 2 +-<br>
>  1 file changed, 1 insertion(+), 1 deletion(-)<br>
><br>
> diff --git a/src/mesa/drivers/dri/i965/<wbr>intel_tex.c b/src/mesa/drivers/dri/i965/<wbr>intel_tex.c<br>
> index 890c82d..94a7ad3 100644<br>
> --- a/src/mesa/drivers/dri/i965/<wbr>intel_tex.c<br>
> +++ b/src/mesa/drivers/dri/i965/<wbr>intel_tex.c<br>
> @@ -94,7 +94,7 @@ intel_alloc_texture_image_<wbr>buffer(struct gl_context *ctx,<br>
>     } else {<br>
>        intel_image->mt = intel_miptree_create_for_<wbr>teximage(brw, intel_texobj,<br>
>                                                            intel_image,<br>
> -                                                          1 /* samples */);<br>
> +                                                          MIPTREE_CREATE_DEFAULT);<br>
>        if (!intel_image->mt)<br>
>           return false;<br>
><br>
--<br>
</div></div>Br,<br>
<br>
Andres<br>
</blockquote></div><br></div></div>