ntt: translate nir_intrinsic_shader_clock
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15889>
This commit is contained in:
parent
dea65ae590
commit
c3096e562d
|
@ -160,7 +160,7 @@ static inline void ntt_##op(struct ntt_compile *c,
|
|||
|
||||
#define OP10( op ) \
|
||||
static inline void ntt_##op(struct ntt_compile *c, \
|
||||
struct ureg_dst tgsi_dst_register) \
|
||||
struct ureg_dst dst) \
|
||||
{ \
|
||||
ntt_insn(c, TGSI_OPCODE_##op, dst, ureg_src_undef(), ureg_src_undef(), ureg_src_undef(), ureg_src_undef()); \
|
||||
}
|
||||
|
@ -2553,6 +2553,10 @@ ntt_emit_intrinsic(struct ntt_compile *c, nir_intrinsic_instr *instr)
|
|||
ntt_store(c, &instr->dest, ntt_get_src(c, instr->src[0]));
|
||||
break;
|
||||
|
||||
case nir_intrinsic_shader_clock:
|
||||
ntt_CLOCK(c, ntt_get_dest(c, &instr->dest));
|
||||
break;
|
||||
|
||||
default:
|
||||
fprintf(stderr, "Unknown intrinsic: ");
|
||||
nir_print_instr(&instr->instr, stderr);
|
||||
|
|
|
@ -206,6 +206,8 @@ OP12(INTERP_OFFSET)
|
|||
|
||||
OP11(FBFETCH)
|
||||
|
||||
OP10(CLOCK)
|
||||
|
||||
#undef OP00
|
||||
#undef OP01
|
||||
#undef OP10
|
||||
|
|
Loading…
Reference in New Issue