summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2016-10-15 10:05:36 +0100
committerRussell King <rmk@arm.linux.org.uk>2016-10-15 10:05:36 +0100
commit4f2ba2d8cc752378a4ef7c3bb93c4928b6fb4612 (patch)
tree7b69821b576393828498c7af5136a431e6ff09a7
parent83223c33e508597e7844aa5bef8595b8e1f7d234 (diff)
Fix assert in etnaviv_vr_op()
The calculation of the space required for the VR op was incorrect - it was calculating it as 10 * 8 * nboxes, which overflows when nboxes is (eg) 56. The corrected calculation should be 10 + 8 * nboxes. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
-rw-r--r--etnaviv/etnaviv_op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/etnaviv/etnaviv_op.c b/etnaviv/etnaviv_op.c
index eb53175..838438a 100644
--- a/etnaviv/etnaviv_op.c
+++ b/etnaviv/etnaviv_op.c
@@ -419,7 +419,7 @@ void etnaviv_vr_op(struct etnaviv *etnaviv, struct etnaviv_vr_op *op,
etnaviv_set_dest_bo(etnaviv, &op->dst, op->cmd);
- EL_START(etnaviv, 10 * 8 * n);
+ EL_START(etnaviv, 10 + 8 * n);
EL(LOADSTATE(VIVS_DE_ALPHA_CONTROL, 1));
EL(VIVS_DE_ALPHA_CONTROL_ENABLE_OFF);