<p dir="ltr">Hrm... I thought bcsel worked on integers. You shouldn't be able to sat it anyway... This seems strange.</p>
<p dir="ltr">As a side-note, this is one of the downsides to typeless that we should figure out how to solve. Not 100% sure how at the moment.</p>
<div class="gmail_quote">On Feb 3, 2015 2:35 AM, "Kenneth Graunke" <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Caught by lit_sat.shader_test.<br>
<br>
Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
---<br>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 1 +<br>
1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp<br>
index 153a1be..3c611af 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp<br>
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp<br>
@@ -1084,6 +1084,7 @@ fs_visitor::nir_emit_alu(nir_alu_instr *instr)<br>
emit(CMP(reg_null_d, op[0], fs_reg(0), BRW_CONDITIONAL_NZ));<br>
inst = emit(SEL(result, op[1], op[2]));<br>
inst->predicate = BRW_PREDICATE_NORMAL;<br>
+ inst->saturate = instr->dest.saturate;<br>
break;<br>
<br>
default:<br>
--<br>
2.2.2<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>