projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e7e1ae
)
glsl: Allow GLSL_TYPE_INT64 for ir_unop_abs and ir_unop_sign
author
Ian Romanick
<ian.d.romanick@intel.com>
Sat, 3 Sep 2016 01:35:38 +0000
(18:35 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Fri, 20 Jan 2017 23:41:23 +0000
(15:41 -0800)
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/ir_validate.cpp
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/ir_validate.cpp
b/src/compiler/glsl/ir_validate.cpp
index
4f13754
..
5a1202b
100644
(file)
--- a/
src/compiler/glsl/ir_validate.cpp
+++ b/
src/compiler/glsl/ir_validate.cpp
@@
-253,7
+253,8
@@
ir_validate::visit_leave(ir_expression *ir)
case ir_unop_sign:
assert(ir->operands[0]->type->base_type == GLSL_TYPE_INT ||
ir->operands[0]->type->base_type == GLSL_TYPE_FLOAT ||
- ir->operands[0]->type->base_type == GLSL_TYPE_DOUBLE);
+ ir->operands[0]->type->base_type == GLSL_TYPE_DOUBLE ||
+ ir->operands[0]->type->base_type == GLSL_TYPE_INT64);
assert(ir->type == ir->operands[0]->type);
break;