diff options
author | Dave Airlie <[email protected]> | 2015-09-04 08:02:14 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2015-09-04 08:02:14 +1000 |
commit | 5fa5a012b163bad80d01a65e2947510f15e1be6b (patch) | |
tree | 4cf47befbe171424d10b639a3ef6dc437c3a1bf0 /src/gallium | |
parent | b05619c627122a0e35a18f92e457d3aefa55f2f7 (diff) |
r600: fix loop overrun in cayman_mul_double_instr
Coverity warned about this. Ilia pointed it out.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 9043668a532..78904da13c3 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -3194,7 +3194,7 @@ static int cayman_mul_double_instr(struct r600_shader_ctx *ctx) int lasti = tgsi_last_instruction(inst->Dst[0].Register.WriteMask); int t1 = ctx->temp_reg; - for (k = 0; k <= 2; k++) { + for (k = 0; k < 2; k++) { if (!(inst->Dst[0].Register.WriteMask & (0x3 << (k * 2)))) continue; |