diff options
author | Dave Airlie <[email protected]> | 2017-01-31 04:50:30 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-01-31 05:38:57 +1000 |
commit | ecc3fa3ba3967624f67abe8d8188102a08c20d7c (patch) | |
tree | 9b0fe5b6c55cafe9628e85269e7d05be0ec33a03 | |
parent | 059dd171759bb89d915c049de1ca1c93865c21d3 (diff) |
radv/ac: handle nir irem opcode.
This fixes:
dEQP-VK.spirv_assembly.instruction.compute.opsrem.*
Reviewed-by: Andres Rodriguez <[email protected]>
Cc: "17.0" <[email protected]"
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index b90148ee8aa..bfe6a2e725d 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -1273,6 +1273,9 @@ static void visit_alu(struct nir_to_llvm_context *ctx, nir_alu_instr *instr) src[1] = to_float(ctx, src[1]); result = LLVMBuildFRem(ctx->builder, src[0], src[1], ""); break; + case nir_op_irem: + result = LLVMBuildSRem(ctx->builder, src[0], src[1], ""); + break; case nir_op_idiv: result = LLVMBuildSDiv(ctx->builder, src[0], src[1], ""); break; |