diff --git a/src/gallium/drivers/r600/sb/sb_expr.cpp b/src/gallium/drivers/r600/sb/sb_expr.cpp index 3dd3a48..b0bb0bd 100644 --- a/src/gallium/drivers/r600/sb/sb_expr.cpp +++ b/src/gallium/drivers/r600/sb/sb_expr.cpp @@ -601,6 +603,11 @@ bool expr_handler::fold_assoc(alu_node *n) { bool distribute_neg = false; switch(op) { + case ALU_OP2_ADD_INT: +#if 1 + if (a->src[0]->gvalue()->is_sgpr()||a->src[1]->gvalue()->is_sgpr()) + return false; +#endif case ALU_OP2_ADD: distribute_neg = true; allow_neg = true;