freedreno/a[345]xx: add R8/RG8 SRGB formats
These enable the GL_EXT_texture_sRGB_R8 / GL_EXT_texture_sRGB_RG8 extensions. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13765>
This commit is contained in:
parent
8db29109be
commit
170e1aa647
|
@ -67,6 +67,7 @@ struct fd3_format {
|
|||
static struct fd3_format formats[PIPE_FORMAT_COUNT] = {
|
||||
/* 8-bit */
|
||||
VT(R8_UNORM, 8_UNORM, R8_UNORM, WZYX),
|
||||
_T(R8_SRGB, 8_UNORM, R8_UNORM, WZYX),
|
||||
VT(R8_SNORM, 8_SNORM, NONE, WZYX),
|
||||
VT(R8_UINT, 8_UINT, NONE, WZYX),
|
||||
VT(R8_SINT, 8_SINT, NONE, WZYX),
|
||||
|
@ -103,6 +104,7 @@ static struct fd3_format formats[PIPE_FORMAT_COUNT] = {
|
|||
_T(I16_SINT, 16_SINT, NONE, WZYX),
|
||||
|
||||
VT(R8G8_UNORM, 8_8_UNORM, R8G8_UNORM, WZYX),
|
||||
_T(R8G8_SRGB, 8_8_UNORM, R8G8_UNORM, WZYX),
|
||||
VT(R8G8_SNORM, 8_8_SNORM, R8G8_SNORM, WZYX),
|
||||
VT(R8G8_UINT, 8_8_UINT, R8G8_UINT, WZYX),
|
||||
VT(R8G8_SINT, 8_8_SINT, R8G8_SINT, WZYX),
|
||||
|
|
|
@ -69,6 +69,7 @@ struct fd4_format {
|
|||
static struct fd4_format formats[PIPE_FORMAT_COUNT] = {
|
||||
/* 8-bit */
|
||||
VT(R8_UNORM, 8_UNORM, R8_UNORM, WZYX),
|
||||
_T(R8_SRGB, 8_UNORM, R8_UNORM, WZYX),
|
||||
VT(R8_SNORM, 8_SNORM, R8_SNORM, WZYX),
|
||||
VT(R8_UINT, 8_UINT, R8_UINT, WZYX),
|
||||
VT(R8_SINT, 8_SINT, R8_SINT, WZYX),
|
||||
|
@ -111,6 +112,7 @@ static struct fd4_format formats[PIPE_FORMAT_COUNT] = {
|
|||
_T(I16_SINT, 16_SINT, NONE, WZYX),
|
||||
|
||||
VT(R8G8_UNORM, 8_8_UNORM, R8G8_UNORM, WZYX),
|
||||
_T(R8G8_SRGB, 8_8_UNORM, R8G8_UNORM, WZYX),
|
||||
VT(R8G8_SNORM, 8_8_SNORM, R8G8_SNORM, WZYX),
|
||||
VT(R8G8_UINT, 8_8_UINT, R8G8_UINT, WZYX),
|
||||
VT(R8G8_SINT, 8_8_SINT, R8G8_SINT, WZYX),
|
||||
|
|
|
@ -72,6 +72,7 @@ static struct fd5_format formats[PIPE_FORMAT_COUNT] = {
|
|||
|
||||
/* 8-bit */
|
||||
VT(R8_UNORM, 8_UNORM, R8_UNORM, WZYX),
|
||||
_T(R8_SRGB, 8_UNORM, R8_UNORM, WZYX),
|
||||
VT(R8_SNORM, 8_SNORM, R8_SNORM, WZYX),
|
||||
VT(R8_UINT, 8_UINT, R8_UINT, WZYX),
|
||||
VT(R8_SINT, 8_SINT, R8_SINT, WZYX),
|
||||
|
@ -120,6 +121,7 @@ static struct fd5_format formats[PIPE_FORMAT_COUNT] = {
|
|||
_T(I16_FLOAT, 16_FLOAT, NONE, WZYX),
|
||||
|
||||
VT(R8G8_UNORM, 8_8_UNORM, R8G8_UNORM, WZYX),
|
||||
_T(R8G8_SRGB, 8_8_UNORM, R8G8_UNORM, WZYX),
|
||||
VT(R8G8_SNORM, 8_8_SNORM, R8G8_SNORM, WZYX),
|
||||
VT(R8G8_UINT, 8_8_UINT, R8G8_UINT, WZYX),
|
||||
VT(R8G8_SINT, 8_8_SINT, R8G8_SINT, WZYX),
|
||||
|
|
Loading…
Reference in New Issue