aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/format_info.py
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2015-08-26 16:25:44 -0700
committerNanley Chery <[email protected]>2015-09-19 13:25:59 -0700
commit31a5135cd793951191c4a2fb86a50253a9931454 (patch)
tree0e483509e46230b4d53b1d9ee96fca4c780e096a /src/mesa/main/format_info.py
parentc228514c72cb2fd5fb9e510808e29204fc9e7ae1 (diff)
mesa/formats: add MESA_LAYOUT_LATC
This enables us to predicate statments on a compressed format being a type of LATC format. Also, remove the comment that lists the enum (it was getting a tad long). 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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/format_info.py b/src/mesa/main/format_info.py
index 22eb5a734a6..50626a858c4 100644
--- a/src/mesa/main/format_info.py
+++ b/src/mesa/main/format_info.py
@@ -111,7 +111,7 @@ def get_channel_bits(fmat, chan_name):
return 1 if fmat.has_channel('a') else 0
else:
return 0
- elif fmat.layout == 'rgtc':
+ elif fmat.layout in ('rgtc', 'latc'):
return 8 if fmat.has_channel(chan_name) else 0
elif fmat.layout in ('etc1', 'etc2'):
if fmat.name.endswith('_ALPHA1') and chan_name == 'a':