From f12e2f9c12cae539ecc43578d3e3a6a33df473bc Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Fri, 2 Feb 2018 13:55:25 +1100 Subject: ac: implement nir_intrinsic_shader_clock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/amd/common/ac_nir_to_llvm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/amd/common') diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 9dcbe253803..4588feb690e 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -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); -- cgit v1.2.3