Commit a83002ce authored by Mike Blumenkrantz's avatar Mike Blumenkrantz 🏋 Committed by Marge Bot

zink: handle nir_op_ibitfield_extract: in ntv

Reviewed-by: Erik Faye-Lund 's avatarErik Faye-Lund <>
Part-of: <mesa/mesa!8153>
parent 99d890f5
......@@ -1531,6 +1531,11 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
result = emit_triop(ctx, SpvOpBitFieldUExtract, dest_type, src[0], src[1], src[2]);
case nir_op_ibitfield_extract:
assert(nir_op_infos[alu->op].num_inputs == 3);
result = emit_triop(ctx, SpvOpBitFieldSExtract, dest_type, src[0], src[1], src[2]);
case nir_op_bitfield_insert:
assert(nir_op_infos[alu->op].num_inputs == 4);
result = spirv_builder_emit_quadop(&ctx->builder, SpvOpBitFieldInsert, dest_type, src[0], src[1], src[2], src[3]);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment