From: Kristian Høgsberg <k...@bitplanet.net> We do the same with ubo load expressions. --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index dbdf0ac..83736a5 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -788,7 +788,8 @@ vec4_visitor::emit_bool_to_cond_code(ir_rvalue *ir, *predicate = BRW_PREDICATE_NORMAL; - if (expr && expr->operation != ir_binop_ubo_load) { + if (expr && expr->operation != ir_binop_ubo_load && + expr->operation != ir_binop_ssbo_load) { src_reg op[3]; vec4_instruction *inst; @@ -936,7 +937,8 @@ vec4_visitor::emit_if_gen6(ir_if *ir) { ir_expression *expr = ir->condition->as_expression(); - if (expr && expr->operation != ir_binop_ubo_load) { + if (expr && expr->operation != ir_binop_ubo_load && + expr->operation != ir_binop_ssbo_load) { src_reg op[3]; dst_reg temp; -- 1.9.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev