OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glcpp/tests: Convert shell scripts to a python script
[android-x86/external-mesa.git]
/
src
/
compiler
/
glsl
/
ir_equals.cpp
diff --git
a/src/compiler/glsl/ir_equals.cpp
b/src/compiler/glsl/ir_equals.cpp
index
b86f4ea
..
f7359e2
100644
(file)
--- a/
src/compiler/glsl/ir_equals.cpp
+++ b/
src/compiler/glsl/ir_equals.cpp
@@
-58,7
+58,7
@@
ir_constant::equals(const ir_instruction *ir, enum ir_node_type) const
return false;
for (unsigned i = 0; i < type->components(); i++) {
return false;
for (unsigned i = 0; i < type->components(); i++) {
- if (type->
base_type == GLSL_TYPE_DOUBLE
) {
+ if (type->
is_double()
) {
if (value.d[i] != other->value.d[i])
return false;
} else {
if (value.d[i] != other->value.d[i])
return false;
} else {
@@
-143,7
+143,7
@@
ir_texture::equals(const ir_instruction *ir, enum ir_node_type ignore) const
if (!possibly_null_equals(projector, other->projector, ignore))
return false;
if (!possibly_null_equals(projector, other->projector, ignore))
return false;
- if (!possibly_null_equals(shadow_compar
itor, other->shadow_compari
tor, ignore))
+ if (!possibly_null_equals(shadow_compar
ator, other->shadow_compara
tor, ignore))
return false;
if (!possibly_null_equals(offset, other->offset, ignore))
return false;
if (!possibly_null_equals(offset, other->offset, ignore))
@@
-202,7
+202,7
@@
ir_expression::equals(const ir_instruction *ir, enum ir_node_type ignore) const
if (operation != other->operation)
return false;
if (operation != other->operation)
return false;
- for (unsigned i = 0; i <
get_num_operands()
; i++) {
+ for (unsigned i = 0; i <
num_operands
; i++) {
if (!operands[i]->equals(other->operands[i], ignore))
return false;
}
if (!operands[i]->equals(other->operands[i], ignore))
return false;
}