[Mesa-dev] [PATCH 13/30] i965/miptree: Add an explicit format parameter to create_for_dri_image

Jason Ekstrand jason at jlekstrand.net
Wed Jun 28 15:35:38 UTC 2017


On Wed, Jun 28, 2017 at 4:06 AM, Daniel Stone <daniel at fooishbar.org> wrote:

> Hi,
>
> On 28 June 2017 at 02:05, Jason Ekstrand <jason at jlekstrand.net> wrote:

> The long answer is that the DRI formats do not specify a colorspace.
>
> Also, strictly speaking, the DRI_IMAGE_FORMAT_* tokens don't specify a
> colourspace, nor do the DRM FourCC tokens. DRI_IMAGE_FOURCC_* is
> equivalent to the latter, bar the addition of a special and unique
> SARGB8 token, i.e. ARGB8888 with the sRGB transfer function (and
> presumably primaries?). The rest are presumed UNORM.
>

Wha?  What's the difference between SARGB8 and ARGB8888 then?  My
understanding was that scanout basically treats everything as sRGB anyway.
Clearly, my sRGB knowledge is imperfect.

As for enums, sure, that can probably happen.  GL and ISL both have enums
for colorspace that we could re-use.

--Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170628/be066bee/attachment.html>


More information about the mesa-dev mailing list