diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2014-10-20 16:23:51 -0700 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2014-10-27 15:00:51 -0700 |
commit | e7ecad146d241767ac6e623e587821ff787d1b59 (patch) | |
tree | 2257c835bda21dd4c9a3fdd62f234456b5f7b350 | |
parent | f11438d14fa49cf2c109a820c74c49bdc722e87b (diff) |
glsl/cs: Change gl_WorkGroupSize from ivec3 to uvec3cs-18
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
-rw-r--r-- | src/glsl/ast_to_hir.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index fe1e1291e0..811a9557df 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -5908,7 +5908,7 @@ ast_cs_input_layout::hir(exec_list *instructions, * declare it earlier). */ ir_variable *var = new(state->symbols) - ir_variable(glsl_type::ivec3_type, "gl_WorkGroupSize", ir_var_auto); + ir_variable(glsl_type::uvec3_type, "gl_WorkGroupSize", ir_var_auto); var->data.how_declared = ir_var_declared_implicitly; var->data.read_only = true; instructions->push_tail(var); @@ -5916,10 +5916,10 @@ ast_cs_input_layout::hir(exec_list *instructions, ir_constant_data data; memset(&data, 0, sizeof(data)); for (int i = 0; i < 3; i++) - data.i[i] = this->local_size[i]; - var->constant_value = new(var) ir_constant(glsl_type::ivec3_type, &data); + data.u[i] = this->local_size[i]; + var->constant_value = new(var) ir_constant(glsl_type::uvec3_type, &data); var->constant_initializer = - new(var) ir_constant(glsl_type::ivec3_type, &data); + new(var) ir_constant(glsl_type::uvec3_type, &data); var->data.has_initializer = true; return NULL; |