summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/format_info.py
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2015-01-26 12:35:23 +0200
committerTapani Pälli <tapani.palli@intel.com>2015-01-28 10:40:15 +0200
commit291d7ef84dcd83962515cbd7ce91ce1ff70930ed (patch)
tree71c48ae9d5b43af1f9498b91f40edfef7f4d02d6 /src/mesa/main/format_info.py
parent6ee5effac1ac8858c96820ece352be57c5c53cf6 (diff)
downloadexternal_mesa3d-291d7ef84dcd83962515cbd7ce91ce1ff70930ed.zip
external_mesa3d-291d7ef84dcd83962515cbd7ce91ce1ff70930ed.tar.gz
external_mesa3d-291d7ef84dcd83962515cbd7ce91ce1ff70930ed.tar.bz2
mesa: improve error messaging for format CSV parser
Patch adds 2 error messages that point user directly to fix mispelled or impossible swizzle field for a format. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
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 fe2063d..3bae57e 100644
--- a/src/mesa/main/format_info.py
+++ b/src/mesa/main/format_info.py
@@ -58,7 +58,7 @@ def get_gl_base_format(fmat):
elif fmat.has_channel('i') and fmat.num_channels() == 1:
return 'GL_INTENSITY'
else:
- assert False
+ sys.exit("error, could not determine base format for {0}, check swizzle".format(fmat.name));
def get_gl_data_type(fmat):
if fmat.is_compressed():