aco: emit_split_vector() s_memtime results
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 10 Oct 2019 16:05:09 +0000 (17:05 +0100)
committerRhys Perry <pendingchaos02@gmail.com>
Wed, 16 Oct 2019 14:31:19 +0000 (15:31 +0100)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
src/amd/compiler/aco_instruction_selection.cpp

index 0c952739fa2b1ff7e16b53fb4ff393bdd7dd7cb7..0e7d8a857e4da06c3e14b1aaab01b470507394fb 100644 (file)
@@ -5840,6 +5840,7 @@ void visit_intrinsic(isel_context *ctx, nir_intrinsic_instr *instr)
    }
    case nir_intrinsic_shader_clock:
       bld.smem(aco_opcode::s_memtime, Definition(get_ssa_temp(ctx, &instr->dest.ssa)), false);
+      emit_split_vector(ctx, get_ssa_temp(ctx, &instr->dest.ssa), 2);
       break;
    case nir_intrinsic_load_vertex_id_zero_base: {
       Temp dst = get_ssa_temp(ctx, &instr->dest.ssa);