diff options
author | Glenn Kennard <[email protected]> | 2015-10-07 17:17:33 +0200 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2015-10-13 08:55:33 +1000 |
commit | 1befb7ed9856381cbfe874f361fae73b8e331bb4 (patch) | |
tree | 4c2dc720fe66284af1b26477f2b1521947814888 /src/gallium/drivers/r600/sb/sb_expr.cpp | |
parent | 80c5062abfdef28e23615f44b214760449f6a582 (diff) |
r600g/sb: SB support for UBO indexing
Signed-off-by: Glenn Kennard <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/sb/sb_expr.cpp')
-rw-r--r-- | src/gallium/drivers/r600/sb/sb_expr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/sb/sb_expr.cpp b/src/gallium/drivers/r600/sb/sb_expr.cpp index 9c2274e65a3..556a05da395 100644 --- a/src/gallium/drivers/r600/sb/sb_expr.cpp +++ b/src/gallium/drivers/r600/sb/sb_expr.cpp @@ -403,7 +403,8 @@ bool expr_handler::fold_alu_op1(alu_node& n) { if ((n.bc.op == ALU_OP1_MOV || n.bc.op == ALU_OP1_MOVA_INT || n.bc.op == ALU_OP1_MOVA_GPR_INT) && n.bc.clamp == 0 && n.bc.omod == 0 - && n.bc.src[0].abs == 0 && n.bc.src[0].neg == 0) { + && n.bc.src[0].abs == 0 && n.bc.src[0].neg == 0 && + n.src.size() == 1 /* RIM/SIM can be appended as additional values */) { assign_source(n.dst[0], v0); return true; } |