projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glsl/serialize: optimize for equal offsets in uniform remap tables
[mesa.git]
/
src
/
compiler
/
glsl
/
ir.cpp
diff --git
a/src/compiler/glsl/ir.cpp
b/src/compiler/glsl/ir.cpp
index f25ee3ee14413bd17e903d2bff6949f3d346c17c..1144cbcae8dd0524e74120a3d6817885914b4878 100644
(file)
--- a/
src/compiler/glsl/ir.cpp
+++ b/
src/compiler/glsl/ir.cpp
@@
-258,6
+258,7
@@
ir_expression::ir_expression(int op, ir_rvalue *op0)
case ir_unop_bitfield_reverse:
case ir_unop_interpolate_at_centroid:
case ir_unop_saturate:
case ir_unop_bitfield_reverse:
case ir_unop_interpolate_at_centroid:
case ir_unop_saturate:
+ case ir_unop_atan:
this->type = op0->type;
break;
this->type = op0->type;
break;
@@
-452,6
+453,7
@@
ir_expression::ir_expression(int op, ir_rvalue *op0, ir_rvalue *op1)
case ir_binop_mul:
case ir_binop_div:
case ir_binop_mod:
case ir_binop_mul:
case ir_binop_div:
case ir_binop_mod:
+ case ir_binop_atan2:
if (op0->type->is_scalar()) {
this->type = op1->type;
} else if (op1->type->is_scalar()) {
if (op0->type->is_scalar()) {
this->type = op1->type;
} else if (op1->type->is_scalar()) {