[Mesa-dev] [PATCH 1/3] i965/mipmap_tree: Don't allocate CCS when emulating ETC support

Kenneth Graunke kenneth at whitecape.org
Tue Mar 6 08:19:39 UTC 2018


On Monday, March 5, 2018 2:07:53 PM PST Nanley Chery wrote:
> ---
>  src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> index c6213b21629..8586968fd6f 100644
> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> @@ -205,11 +205,11 @@ intel_miptree_supports_ccs(struct brw_context *brw,
>     if (devinfo->gen < 8 && (mip_mapped || arrayed))
>        return false;
>  
> -   /* There's no point in using an MCS buffer if the surface isn't in a
> -    * renderable format.
> -    */
> -   if (!brw->mesa_format_supports_render[mt->format])
> +   /* There's no need for an MCS buffer if the surface isn't renderable. */
> +   if (!brw->mesa_format_supports_render[mt->format] ||
> +       (mt->etc_format != MESA_FORMAT_NONE)) {
>        return false;
> +   }
>  
>     return true;
>  }
> 

I'm confused...we only emulate ETC on Gen < 8.  CCS_E only exists on
Gen >= 9.  CCS_D does exsit on Gen7-7.5...but I thought we deferred
CCS_D allocations until the first fast clear...and I don't think it's
possible to bind an ETC texture as a render target for clearing anyway.
Maybe ClearTexture but I have my doubts there, too...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180306/80f995fc/attachment-0001.sig>


More information about the mesa-dev mailing list