summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir.cpp
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-05-29 10:49:03 -0400
committerIlia Mirkin <[email protected]>2016-06-06 20:48:46 -0400
commit5189f0243a3dd8698c645bbe762b8a1a3caaf1a9 (patch)
tree52424a33a94512e4845b9557d6a9e215eab302af /src/compiler/glsl/ir.cpp
parent13b859de044d0f970fcafd4bbb643a307c6ab4eb (diff)
mesa: hook up core bits of GL_ARB_shader_group_vote
Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir.cpp')
-rw-r--r--src/compiler/glsl/ir.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir.cpp b/src/compiler/glsl/ir.cpp
index 5bb3ac3c214..7961f00ffd1 100644
--- a/src/compiler/glsl/ir.cpp
+++ b/src/compiler/glsl/ir.cpp
@@ -341,6 +341,12 @@ ir_expression::ir_expression(int op, ir_rvalue *op0)
this->type = glsl_type::int_type;
break;
+ case ir_unop_vote_any:
+ case ir_unop_vote_all:
+ case ir_unop_vote_eq:
+ this->type = glsl_type::bool_type;
+ break;
+
default:
assert(!"not reached: missing automatic type setup for ir_expression");
this->type = op0->type;
@@ -563,6 +569,9 @@ static const char *const operator_strs[] = {
"interpolate_at_centroid",
"get_buffer_size",
"ssbo_unsized_array_length",
+ "vote_any",
+ "vote_all",
+ "vote_eq",
"+",
"-",
"*",