summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/lower_mat_op_to_vec.cpp
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2015-04-15 17:55:32 -0700
committerIan Romanick <ian.d.romanick@intel.com>2016-08-30 16:28:00 -0700
commitc6e8fd82ea118c66e69e4ad7967faec0715741aa (patch)
tree548a68d7abea31fc0f46ed2b093e249236d77a1b /src/compiler/glsl/lower_mat_op_to_vec.cpp
parentfb44f69779ed7497768421ccd60e73cc707ffe69 (diff)
downloadexternal_mesa3d-c6e8fd82ea118c66e69e4ad7967faec0715741aa.zip
external_mesa3d-c6e8fd82ea118c66e69e4ad7967faec0715741aa.tar.gz
external_mesa3d-c6e8fd82ea118c66e69e4ad7967faec0715741aa.tar.bz2
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 <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/compiler/glsl/lower_mat_op_to_vec.cpp')
-rw-r--r--src/compiler/glsl/lower_mat_op_to_vec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/lower_mat_op_to_vec.cpp b/src/compiler/glsl/lower_mat_op_to_vec.cpp
index 266fdc6..9a27029 100644
--- a/src/compiler/glsl/lower_mat_op_to_vec.cpp
+++ b/src/compiler/glsl/lower_mat_op_to_vec.cpp
@@ -428,7 +428,7 @@ ir_mat_op_to_vec_visitor::visit_leave(ir_assignment *orig_assign)
default:
printf("FINISHME: Handle matrix operation for %s\n",
- orig_expr->operator_string());
+ ir_expression_operation_strings[orig_expr->operation]);
abort();
}
orig_assign->remove();