OSDN Git Service

Gallium: Add new CAPS to indicate whether a driver can switch SRGB write
authorGert Wollny <gert.wollny@collabora.com>
Tue, 13 Nov 2018 10:34:35 +0000 (11:34 +0100)
committerGert Wollny <gert.wollny@collabora.com>
Mon, 28 Jan 2019 11:18:40 +0000 (12:18 +0100)
commit8021f1875e2d830e67aadbf2d44ddfb6f5dd2b13
treefa31e8f849d5b5b4181105d7be7102417e17e89c
parent75b3719c4f01595aa339568edd39f0f3b1b53aa3
Gallium: Add new CAPS to indicate whether a driver can switch SRGB write

Add a new cap that indicates whether the drivers supports
enabling/disabling the conversion from linear space to sRGB
for a framebuffer attachment. In Driver terms that this CAP indicates
whether the driver can switcht between a linear and and a sRGB surface
format for draw destinations witout changing the sourface itself.

v2: rename CAP to DEST_SURFACE_SRGB_CONTROL to reflect its
    purpouse better (pointed out by Ilia Mirkin)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_screen.c
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_defines.h