diff options
author | Nanley Chery <[email protected]> | 2015-05-19 09:58:17 -0700 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2015-08-24 16:08:01 -0700 |
commit | 8f378d1083179ea9e760688582faf95aea880b94 (patch) | |
tree | 2165a32169788cb3e3fc66527ab11f3c218d0716 /src/mesa/main/format_info.py | |
parent | 4f2cdd849738019ce9552ee1d5f8dafce8af3f10 (diff) |
mesa/formats: store whether or not a format is sRGB in gl_format_info
v2: remove extra newline.
v3: use bool instead of GLboolean.
Reviewed-by: Anuj Phogat <[email protected]>
Signed-off-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/mesa/main/format_info.py')
-rw-r--r-- | src/mesa/main/format_info.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/format_info.py b/src/mesa/main/format_info.py index c249e73a551..839d4073c61 100644 --- a/src/mesa/main/format_info.py +++ b/src/mesa/main/format_info.py @@ -180,6 +180,8 @@ for fmat in formats: bits = [ get_channel_bits(fmat, name) for name in ['l', 'i', 'z', 's']] print ' {0},'.format(', '.join(map(str, bits))) + print ' {0:d},'.format(fmat.colorspace == 'srgb') + print ' {0}, {1}, {2},'.format(fmat.block_width, fmat.block_height, int(fmat.block_size() / 8)) |