glsl: Add missing ir_quadop_vector constant evaluation for Boolean types

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Ian Romanick
2016-07-12 16:23:27 -07:00
parent cf58e3f522
commit 2ec3a3e151

View File

@@ -1726,6 +1726,9 @@ ir_expression::constant_expression_value(struct hash_table *variable_context)
case GLSL_TYPE_DOUBLE:
data.d[c] = op[c]->value.d[0];
break;
case GLSL_TYPE_BOOL:
data.b[c] = op[c]->value.b[0];
break;
default:
assert(0);
}