glsl_to_nir: fix shader_clock
authorRob Clark <robdclark@chromium.org>
Wed, 17 Jun 2020 00:45:59 +0000 (17:45 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 18 Jun 2020 03:40:54 +0000 (03:40 +0000)
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5505>

src/compiler/glsl/glsl_to_nir.cpp

index 733e0430e5fd67af6455890bb9014df6bd64eed6..d09377b24ef3bbb9a46b1c429440ea54c0a59fff 100644 (file)
@@ -1400,7 +1400,6 @@ nir_visitor::visit(ir_call *ir)
          break;
       case nir_intrinsic_shader_clock:
          nir_ssa_dest_init(&instr->instr, &instr->dest, 2, 32, NULL);
-         instr->num_components = 2;
          nir_intrinsic_set_memory_scope(instr, NIR_SCOPE_SUBGROUP);
          nir_builder_instr_insert(&b, &instr->instr);
          break;