summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/formatquery.c
diff options
context:
space:
mode:
authorGert Wollny <[email protected]>2018-11-13 12:18:27 +0100
committerGert Wollny <[email protected]>2019-01-28 12:18:40 +0100
commit8f9dfb7d8812a045a38b1740e90f43a585aec58e (patch)
treec24974e37a1a64589fdfc13bb2cd2f1311f95f19 /src/mesa/main/formatquery.c
parent385081cd17705a2581a6325ac668d2d6fae19e7d (diff)
mesa/st: rework support for sRGB framebuffer attachements
For GLES sRGB framebuffer attachemnt support is provided in two steps: sRGB attachments like described in EXT_sRGB (and GLES 3.0) that enable linear to sRGB color space transformation automatically, and the ability to switch formats of the render target surface between sRGB and linear that introduces full support for EXT_framebuffer_sRGB. Set the according flags to reflect these two levels of sRGB support. As a difference between desktopm GL and GLES, on desktop GL for a sRGB framebuffer attachment the linear-sRGB conversion is turned off by default, and for GLES it is turned on. This needs to be taken into account when initally creating a surface, i.e. on desktop GL creation of a sRGB surface is preferred, but on GLES sRGB surfaces are only created when explicitely requested. v2: - Use the new CAPS name Signed-off-by: Gert Wollny <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/formatquery.c')
0 files changed, 0 insertions, 0 deletions