[Mesa-dev] [PATCH 6/6] i965: Enable CCS_E sampling of sRGB textures as UNORM

Kenneth Graunke kenneth at whitecape.org
Wed Jan 17 00:24:14 UTC 2018


On Wednesday, January 10, 2018 11:22:40 AM PST Jason Ekstrand wrote:
> ---
>  src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> index 0bbd661..df0df8c 100644
> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> @@ -2570,9 +2570,8 @@ can_texture_with_ccs(struct brw_context *brw,
>     if (mt->aux_usage != ISL_AUX_USAGE_CCS_E)
>        return false;
>  
> -   /* TODO: Replace with format_ccs_e_compat_with_miptree for better perf. */
> -   if (!isl_formats_are_ccs_e_compatible(&brw->screen->devinfo,
> -                                         mt->surf.format, view_format)) {
> +   if (!format_ccs_e_compat_with_miptree(&brw->screen->devinfo,
> +                                         mt, view_format)) {
>        perf_debug("Incompatible sampling format (%s) for rbc (%s)\n",
>                   isl_format_get_layout(view_format)->name,
>                   _mesa_get_format_name(mt->format));
> 

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- 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/20180116/97015b35/attachment.sig>


More information about the mesa-dev mailing list