<div dir="ltr">Reviewed-by: Bas Nieuwenhuizen <<a href="mailto:bas@basnieuwenhuizen.nl">bas@basnieuwenhuizen.nl</a>></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 20, 2018 at 1:16 AM, Dave Airlie <span dir="ltr"><<a href="mailto:airlied@gmail.com" target="_blank">airlied@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
<br>
dEQP-VK.tessellation.<wbr>invariance.outer_edge_<wbr>symmetry.triangles_equal_<wbr>spacing_ccw<br>
was hitting an llvm assert due to one value being an int and the<br>
other a float.<br>
<br>
This just casts both values to integer and fixes the test.<br>
<br>
Fixes: dEQP-VK.tessellation.<wbr>invariance.outer_edge_<wbr>symmetry.triangles_equal_<wbr>spacing_ccw<br>
Cc: <a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.<wbr>org</a><br>
Signed-off-by: Dave Airlie <<a href="mailto:airlied@redhat.com">airlied@redhat.com</a>><br>
---<br>
src/amd/common/ac_nir_to_llvm.<wbr>c | 3 ++-<br>
1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/amd/common/ac_nir_to_<wbr>llvm.c b/src/amd/common/ac_nir_to_<wbr>llvm.c<br>
index dc471de..8906418 100644<br>
--- a/src/amd/common/ac_nir_to_<wbr>llvm.c<br>
+++ b/src/amd/common/ac_nir_to_<wbr>llvm.c<br>
@@ -1312,7 +1312,8 @@ static LLVMValueRef emit_bcsel(struct ac_llvm_context *ctx,<br>
{<br>
LLVMValueRef v = LLVMBuildICmp(ctx->builder, LLVMIntNE, src0,<br>
ctx->i32_0, "");<br>
- return LLVMBuildSelect(ctx->builder, v, src1, src2, "");<br>
+ return LLVMBuildSelect(ctx->builder, v, ac_to_integer(ctx, src1),<br>
+ ac_to_integer(ctx, src2), "");<br>
}<br>
<br>
static LLVMValueRef emit_minmax_int(struct ac_llvm_context *ctx,<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.9.5<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>