diff options
author | Anuj Phogat <[email protected]> | 2016-02-10 16:41:23 -0800 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2016-05-03 03:43:17 -0700 |
commit | 6abb1b4984bba5560baccd53e68237ab86822ec0 (patch) | |
tree | 797a62da19ad6f1d9bf4070a55f3d1a68ed33af4 /src/mesa/main/format_info.py | |
parent | c4a0cd4662efe32e95c3f1e68b2f058b60bdcb52 (diff) |
mesa: Add block depth field in struct gl_format_info
This will be later required for 3D ASTC formats.
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/format_info.py')
-rw-r--r-- | src/mesa/main/format_info.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/format_info.py b/src/mesa/main/format_info.py index 50626a858c4..729edbb3249 100644 --- a/src/mesa/main/format_info.py +++ b/src/mesa/main/format_info.py @@ -185,8 +185,9 @@ for fmat in formats: print ' {0:d},'.format(fmat.colorspace == 'srgb') - print ' {0}, {1}, {2},'.format(fmat.block_width, fmat.block_height, - int(fmat.block_size() / 8)) + print ' {0}, {1}, {2}, {3},'.format(fmat.block_width, fmat.block_height, + fmat.block_depth, + int(fmat.block_size() / 8)) print ' {{ {0} }},'.format(', '.join(map(str, fmat.swizzle))) if fmat.is_array(): |