<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 1, 2017 at 10:46 AM, Nanley Chery <span dir="ltr"><<a href="mailto:nanleychery@gmail.com" target="_blank">nanleychery@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Tue, Oct 31, 2017 at 08:01:05PM -0700, Jason Ekstrand wrote:<br>
> This function is a bit more accurate because it lets us sample from sRGB<br>
> textures if sRGB decode is off. This should improve performance in<br>
</span> ^ ^<br>
missing "with CCS_E"? extra word?<br></blockquote><div><br></div><div>Yup. Commit message improved:</div><div><br></div><div> Using this function is a bit more accurate because it lets us sample<br> from sRGB textures with CCS_E whenever sRGB decode is disabled. The<br> old check for CCS_E compatibility would bail if the miptree's native<br> format were sRGB even if the view format is linear. This should improve<br> performance whenever GL_SKIP_DECODE_EXT is used.<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="gmail-"><br>
> whenever GL_SKIP_DECODE_EXT is used.<br>
> ---<br>
> src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.c | 5 ++---<br>
> 1 file changed, 2 insertions(+), 3 deletions(-)<br>
><br>
> diff --git a/src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.c<br>
> index 82f5a81..835d7ae 100644<br>
> --- a/src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.c<br>
> +++ b/src/mesa/drivers/dri/i965/<wbr>intel_mipmap_tree.c<br>
> @@ -2566,9 +2566,8 @@ can_texture_with_ccs(struct brw_context *brw,<br>
> if (mt->aux_usage != ISL_AUX_USAGE_CCS_E)<br>
> return false;<br>
><br>
> - /* TODO: Replace with format_ccs_e_compat_with_<wbr>miptree for better perf. */<br>
> - if (!isl_formats_are_ccs_e_<wbr>compatible(&brw->screen-><wbr>devinfo,<br>
> - mt->surf.format, view_format)) {<br>
> + if (!format_ccs_e_compat_with_<wbr>miptree(&brw->screen->devinfo,<br>
> + mt, view_format)) {<br>
> perf_debug("Incompatible sampling format (%s) for rbc (%s)\n",<br>
> isl_format_get_layout(view_<wbr>format)->name,<br>
> _mesa_get_format_name(mt-><wbr>format));<br>
<br>
</span>Do we want to update this perf_debug to return the linear format of the<br>
miptree<span class="gmail-HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">I don't know that it matters much since it's just a perf debug. I think I'd prefer we leave it as-is because right now it tells us the exact miptree format not some format calculated from it.<br></div></div>