[Mesa-dev] [PATCH 1/5] dri/image: Add a format modifier attributes query

Daniel Stone daniel at fooishbar.org
Mon Aug 28 14:46:57 UTC 2017


On 16 August 2017 at 20:30, Jason Ekstrand <jason at jlekstrand.net> wrote:
> +   /**
> +    * dmabuf format modifier attribute query for a given format and modifier.
> +    *
> +    * \param fourcc    The format to query. If this format is not supported by
> +    *                  the driver, return false.
> +    * \param modifier  The modifier to query. If this format+modifier is not
> +    *                  supported by the driver, return false.
> +    * \param attrib    The __DRI_IMAGE_FORMAT_MODIFIER_ATTRIB to query.
> +    * \param value     A pointer to where to store the result of the query.
> +    *
> +    * Returns true upon success.
> +    *
> +    * \since 16
> +    */
> +   GLboolean (*queryDmaBufFormatModifierAttribs)(__DRIscreen *screen,
> +                                                 int fourcc, uint64_t modifier,
> +                                                 int attrib, uint64_t *value);

uint32_t fourcc


More information about the mesa-dev mailing list