<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<pre class="log" id="log" wrap="">Reviewed-by: Andres Rodriguez <a href="mailto:andresx7@gmail.com" class="moz-txt-link-rfc2396E"><andresx7@gmail.com></a>
</pre>
<br>
<div class="moz-cite-prefix">On 2017-01-30 01:50 PM, Dave Airlie
wrote:<br>
</div>
<blockquote cite="mid:20170130185052.26373-1-airlied@gmail.com"
type="cite">
<pre wrap="">From: Dave Airlie <a class="moz-txt-link-rfc2396E" href="mailto:airlied@redhat.com"><airlied@redhat.com></a>
This fixes:
dEQP-VK.spirv_assembly.instruction.compute.opsrem.*
Signed-off-by: Dave Airlie <a class="moz-txt-link-rfc2396E" href="mailto:airlied@redhat.com"><airlied@redhat.com></a>
---
src/amd/common/ac_nir_to_llvm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index b90148e..bfe6a2e 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;
</pre>
</blockquote>
<br>
</body>
</html>