nir/spirv: Add support for OpQuantize
This commit is contained in:
@@ -3370,6 +3370,7 @@ vtn_handle_body_instruction(struct vtn_builder *b, SpvOp opcode,
|
||||
case SpvOpUConvert:
|
||||
case SpvOpSConvert:
|
||||
case SpvOpFConvert:
|
||||
case SpvOpQuantizeToF16:
|
||||
case SpvOpConvertPtrToU:
|
||||
case SpvOpConvertUToPtr:
|
||||
case SpvOpPtrCastToGeneric:
|
||||
|
||||
@@ -387,6 +387,10 @@ vtn_handle_alu(struct vtn_builder *b, SpvOp opcode,
|
||||
op = nir_op_fmov;
|
||||
break;
|
||||
|
||||
case SpvOpQuantizeToF16:
|
||||
op = nir_op_fquantize2f16;
|
||||
break;
|
||||
|
||||
/* Derivatives: */
|
||||
case SpvOpDPdx: op = nir_op_fddx; break;
|
||||
case SpvOpDPdy: op = nir_op_fddy; break;
|
||||
|
||||
Reference in New Issue
Block a user