[Mesa-dev] [PATCH 3/7] isl: Add func isl_tiling_is_aux()

Jason Ekstrand jason at jlekstrand.net
Wed Mar 15 16:44:11 UTC 2017


On Mon, Mar 13, 2017 at 3:28 PM, Chad Versace <chadversary at chromium.org>
wrote:

> ---
>  src/intel/isl/isl.h | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
> index 9d92906ca71..b79793b0c93 100644
> --- a/src/intel/isl/isl.h
> +++ b/src/intel/isl/isl.h
> @@ -473,6 +473,9 @@ typedef uint32_t isl_tiling_flags_t;
>  /** The Skylake BSpec refers to Yf and Ys as "standard tiling formats". */
>  #define ISL_TILING_STD_Y_MASK             (ISL_TILING_Yf_BIT | \
>                                             ISL_TILING_Ys_BIT)
> +
> +#define ISL_TILING_AUX_MASK               (ISL_TILING_HIZ_BIT | \
> +                                           ISL_TILING_CCS_BIT)
>

What about MCS?


>  /** @} */
>
>  /**
> @@ -1182,6 +1185,12 @@ isl_tiling_is_std_y(enum isl_tiling tiling)
>     return (1u << tiling) & ISL_TILING_STD_Y_MASK;
>  }
>
> +static inline bool
> +isl_tiling_is_aux(enum isl_tiling tiling)
> +{
> +   return (1u << tiling) & ISL_TILING_AUX_MASK;
> +}
> +
>  struct isl_extent2d ATTRIBUTE_CONST
>  isl_get_interleaved_msaa_px_size_sa(uint32_t samples);
>
> --
> 2.12.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170315/475a092f/attachment-0001.html>


More information about the mesa-dev mailing list