diff options
author | Ian Romanick <[email protected]> | 2015-04-15 17:55:32 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-08-30 16:28:00 -0700 |
commit | c6e8fd82ea118c66e69e4ad7967faec0715741aa (patch) | |
tree | 548a68d7abea31fc0f46ed2b093e249236d77a1b /src/compiler/glsl/ir_expression_operation.py | |
parent | fb44f69779ed7497768421ccd60e73cc707ffe69 (diff) |
glsl: Just access the ir_expression_operation strings table directly
The operator_string functions gave us some protection against a
malformed table. Now that the table is generated from the same data
that generates the enum, this is not a concern. Just cut out the middle
man.
text data bss dec hex filename
7531892 273992 28584 7834468 778b64 i965_dri-64bit-before.so
7531828 273992 28584 7834404 778b24 i965_dri-64bit-after.so
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_expression_operation.py')
-rw-r--r-- | src/compiler/glsl/ir_expression_operation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/ir_expression_operation.py b/src/compiler/glsl/ir_expression_operation.py index 8b55c282cff..8e2dd27d9eb 100644 --- a/src/compiler/glsl/ir_expression_operation.py +++ b/src/compiler/glsl/ir_expression_operation.py @@ -365,7 +365,7 @@ ${item} };""") strings_template = mako.template.Template(copyright + """ -static const char *const operator_strs[] = { +const char *const ir_expression_operation_strings[] = { % for item in values: % if not isinstance(item, str): "${item[2] if item[2] is not None else item[0]}", |