ac: implement nir_intrinsic_shader_clock
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 2 Feb 2018 02:55:25 +0000 (13:55 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 6 Feb 2018 21:43:08 +0000 (08:43 +1100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_nir_to_llvm.c

index 9dcbe253803917d92dc6d2fd3b6a85847e32a15f..4588feb690eb004623fbb02ef4eea5b49a8b7efd 100644 (file)
@@ -4439,6 +4439,9 @@ static void visit_intrinsic(struct ac_nir_context *ctx,
        case nir_intrinsic_image_size:
                result = visit_image_size(ctx, instr);
                break;
+       case nir_intrinsic_shader_clock:
+               result = ac_build_shader_clock(&ctx->ac);
+               break;
        case nir_intrinsic_discard:
        case nir_intrinsic_discard_if:
                emit_discard(ctx, instr);