diff options
author | Eric Engestrom <[email protected]> | 2019-11-07 18:08:09 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-12-27 21:04:43 +0000 |
commit | 8f4d4c808b6ed0b15b7a0cb0154a4cc3e8e7d907 (patch) | |
tree | 7fd5f6dc2eecf08d542260438542e58a20c9f92c | |
parent | cc7a64f101be0939c17231257701230859dee90d (diff) |
util/format: add PIPE_FORMAT_ASTC_*x*x*_SRGB to util_format_{srgb,linear}()
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
-rw-r--r-- | src/util/format/u_format.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/util/format/u_format.h b/src/util/format/u_format.h index 09a00e761c6..a0eac087bf5 100644 --- a/src/util/format/u_format.h +++ b/src/util/format/u_format.h @@ -1038,6 +1038,26 @@ util_format_srgb(enum pipe_format format) return PIPE_FORMAT_ASTC_12x10_SRGB; case PIPE_FORMAT_ASTC_12x12: return PIPE_FORMAT_ASTC_12x12_SRGB; + case PIPE_FORMAT_ASTC_3x3x3: + return PIPE_FORMAT_ASTC_3x3x3_SRGB; + case PIPE_FORMAT_ASTC_4x3x3: + return PIPE_FORMAT_ASTC_4x3x3_SRGB; + case PIPE_FORMAT_ASTC_4x4x3: + return PIPE_FORMAT_ASTC_4x4x3_SRGB; + case PIPE_FORMAT_ASTC_4x4x4: + return PIPE_FORMAT_ASTC_4x4x4_SRGB; + case PIPE_FORMAT_ASTC_5x4x4: + return PIPE_FORMAT_ASTC_5x4x4_SRGB; + case PIPE_FORMAT_ASTC_5x5x4: + return PIPE_FORMAT_ASTC_5x5x4_SRGB; + case PIPE_FORMAT_ASTC_5x5x5: + return PIPE_FORMAT_ASTC_5x5x5_SRGB; + case PIPE_FORMAT_ASTC_6x5x5: + return PIPE_FORMAT_ASTC_6x5x5_SRGB; + case PIPE_FORMAT_ASTC_6x6x5: + return PIPE_FORMAT_ASTC_6x6x5_SRGB; + case PIPE_FORMAT_ASTC_6x6x6: + return PIPE_FORMAT_ASTC_6x6x6_SRGB; default: return PIPE_FORMAT_NONE; @@ -1126,6 +1146,26 @@ util_format_linear(enum pipe_format format) return PIPE_FORMAT_ASTC_12x10; case PIPE_FORMAT_ASTC_12x12_SRGB: return PIPE_FORMAT_ASTC_12x12; + case PIPE_FORMAT_ASTC_3x3x3_SRGB: + return PIPE_FORMAT_ASTC_3x3x3; + case PIPE_FORMAT_ASTC_4x3x3_SRGB: + return PIPE_FORMAT_ASTC_4x3x3; + case PIPE_FORMAT_ASTC_4x4x3_SRGB: + return PIPE_FORMAT_ASTC_4x4x3; + case PIPE_FORMAT_ASTC_4x4x4_SRGB: + return PIPE_FORMAT_ASTC_4x4x4; + case PIPE_FORMAT_ASTC_5x4x4_SRGB: + return PIPE_FORMAT_ASTC_5x4x4; + case PIPE_FORMAT_ASTC_5x5x4_SRGB: + return PIPE_FORMAT_ASTC_5x5x4; + case PIPE_FORMAT_ASTC_5x5x5_SRGB: + return PIPE_FORMAT_ASTC_5x5x5; + case PIPE_FORMAT_ASTC_6x5x5_SRGB: + return PIPE_FORMAT_ASTC_6x5x5; + case PIPE_FORMAT_ASTC_6x6x5_SRGB: + return PIPE_FORMAT_ASTC_6x6x5; + case PIPE_FORMAT_ASTC_6x6x6_SRGB: + return PIPE_FORMAT_ASTC_6x6x6; default: return format; } |