Mesa (master): i965/vec4: Fix implementation of i2b.

Matt Turner mattst88 at kemper.freedesktop.org
Sat Feb 28 04:24:30 UTC 2015


Module: Mesa
Branch: master
Commit: 43ef2657a08f850c5756f28520f2cbe506807f24
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=43ef2657a08f850c5756f28520f2cbe506807f24

Author: Matt Turner <mattst88 at gmail.com>
Date:   Thu Feb 26 22:49:47 2015 -0800

i965/vec4: Fix implementation of i2b.

I broke this in commit 2881b123d. I must have misread i2b as b2i.

Cc: 10.5 <mesa-stable at lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88246
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index f6f589d..0e30772 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -1655,7 +1655,7 @@ vec4_visitor::visit(ir_expression *ir)
       emit(CMP(result_dst, op[0], src_reg(0.0f), BRW_CONDITIONAL_NZ));
       break;
    case ir_unop_i2b:
-      emit(AND(result_dst, op[0], src_reg(1)));
+      emit(CMP(result_dst, op[0], src_reg(0), BRW_CONDITIONAL_NZ));
       break;
 
    case ir_unop_trunc:




More information about the mesa-commit mailing list