diff options
author | Jonathan Marek <[email protected]> | 2019-08-04 17:17:13 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-09-11 22:39:07 -0400 |
commit | 8829f9ccb0267d11328389bf4b9cfc94b24b764e (patch) | |
tree | 867490d9915b7ccacde3b2509c0880025dbe8445 | |
parent | 8d286776b6ca177a5e55a9c706081a40ebbcf091 (diff) |
u_format: add ETC2 to util_format_srgb/util_format_linear
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/util/u_format.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index 34fc0d15d9c..7b0e3ee1bc4 100644 --- a/src/gallium/auxiliary/util/u_format.h +++ b/src/gallium/auxiliary/util/u_format.h @@ -996,6 +996,12 @@ util_format_srgb(enum pipe_format format) return PIPE_FORMAT_B5G6R5_SRGB; case PIPE_FORMAT_BPTC_RGBA_UNORM: return PIPE_FORMAT_BPTC_SRGBA; + case PIPE_FORMAT_ETC2_RGB8: + return PIPE_FORMAT_ETC2_SRGB8; + case PIPE_FORMAT_ETC2_RGB8A1: + return PIPE_FORMAT_ETC2_SRGB8A1; + case PIPE_FORMAT_ETC2_RGBA8: + return PIPE_FORMAT_ETC2_SRGBA8; case PIPE_FORMAT_ASTC_4x4: return PIPE_FORMAT_ASTC_4x4_SRGB; case PIPE_FORMAT_ASTC_5x4: @@ -1074,6 +1080,12 @@ util_format_linear(enum pipe_format format) return PIPE_FORMAT_B5G6R5_UNORM; case PIPE_FORMAT_BPTC_SRGBA: return PIPE_FORMAT_BPTC_RGBA_UNORM; + case PIPE_FORMAT_ETC2_SRGB8: + return PIPE_FORMAT_ETC2_RGB8; + case PIPE_FORMAT_ETC2_SRGB8A1: + return PIPE_FORMAT_ETC2_RGB8A1; + case PIPE_FORMAT_ETC2_SRGBA8: + return PIPE_FORMAT_ETC2_RGBA8; case PIPE_FORMAT_ASTC_4x4_SRGB: return PIPE_FORMAT_ASTC_4x4; case PIPE_FORMAT_ASTC_5x4_SRGB: |