From: Timothy Arceri Date: Fri, 2 Feb 2018 02:55:25 +0000 (+1100) Subject: ac: implement nir_intrinsic_shader_clock X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f12e2f9c12cae539ecc43578d3e3a6a33df473bc;p=mesa.git ac: implement nir_intrinsic_shader_clock Reviewed-by: Marek Olšák --- 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);