projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b91eef
)
i965/vs: Fix implementation of ir_unop_any.
author
Eric Anholt
<eric@anholt.net>
Tue, 9 Aug 2011 17:57:09 +0000
(10:57 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 16 Aug 2011 20:04:42 +0000
(13:04 -0700)
We were inheriting whatever previous predicate existed.
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 049af6c3992c7153140f7e0d12f91a5733c085b3..fde1d67759a1ed35f4be029cad7e9646489b65b5 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@
-998,7
+998,9
@@
vec4_visitor::visit(ir_expression *ir)
break;
case ir_unop_any:
- emit(BRW_OPCODE_CMP, dst_null_d(), op[0], src_reg(0));
+ inst = emit(BRW_OPCODE_CMP, dst_null_d(), op[0], src_reg(0));
+ inst->conditional_mod = BRW_CONDITIONAL_NZ;
+
emit(BRW_OPCODE_MOV, result_dst, src_reg(0));
inst = emit(BRW_OPCODE_MOV, result_dst, src_reg(1));