summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_structs_dump.py
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-11-05 12:44:36 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-11-05 12:45:23 +0000
commit31b8b1dd36d9f07a7893a89ee985d83c4d0bb95b (patch)
tree4f8b5d4e4186e38db5ad2347505cdd8bc6f7b009 /src/gallium/drivers/i965/brw_structs_dump.py
parent09454f68e5d5f267b1d76d1cde4ff8e2a91e105c (diff)
i965g: Don't dump pads or dwords aliases.
Diffstat (limited to 'src/gallium/drivers/i965/brw_structs_dump.py')
-rwxr-xr-xsrc/gallium/drivers/i965/brw_structs_dump.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_structs_dump.py b/src/gallium/drivers/i965/brw_structs_dump.py
index 581515878e..6dba49ad91 100755
--- a/src/gallium/drivers/i965/brw_structs_dump.py
+++ b/src/gallium/drivers/i965/brw_structs_dump.py
@@ -40,6 +40,7 @@ copyright = '''
import os
import sys
+import re
from pygccxml import parser
from pygccxml import declarations
@@ -53,6 +54,11 @@ from pygccxml.declarations import type_visitor
enums = True
+def vars_filter(variable):
+ name = variable.name
+ return not re.match('^pad\d*', name) and name != 'dword'
+
+
class decl_dumper_t(decl_visitor.decl_visitor_t):
def __init__(self, stream, instance = '', decl = None):
@@ -69,7 +75,8 @@ class decl_dumper_t(decl_visitor.decl_visitor_t):
assert self.decl.class_type in ('struct', 'union')
for variable in class_.variables(recursive = False):
- dump_type(self.stream, self._instance + '.' + variable.name, variable.type)
+ if vars_filter(variable):
+ dump_type(self.stream, self._instance + '.' + variable.name, variable.type)
def visit_enumeration(self):
if enums: