glapi: add KHR_no_error support to dispatch table generation
[mesa.git] / src / mapi / glapi / gen / gl_XML.py
index c688906e8845314c84c6831b064302dc09ef1744..a5320e90a1ded5e6ec1540b9a7277f041b3a9923 100644 (file)
@@ -606,6 +606,7 @@ class gl_function( gl_item ):
         self.exec_flavor = 'mesa'
         self.desktop = True
         self.deprecated = None
+        self.has_no_error_variant = False
 
         # self.entry_point_api_map[name][api] is a decimal value
         # indicating the earliest version of the given API in which
@@ -676,6 +677,11 @@ class gl_function( gl_item ):
         if not is_attr_true(element, 'desktop', 'true'):
             self.desktop = False
 
+        if self.has_no_error_variant or is_attr_true(element, 'no_error'):
+            self.has_no_error_variant = True
+        else:
+            self.has_no_error_variant = False
+
         if alias:
             true_name = alias
         else: