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

> Hi,
>
> On 28 June 2017 at 02:05, Jason Ekstrand <ja...@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
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to