diff mbox

[2/2] aubdump: Bump GTT size to 128MB.

Message ID 20161101215039.22654-2-currojerez@riseup.net (mailing list archive)
State New, archived
Headers show

Commit Message

Francisco Jerez Nov. 1, 2016, 9:50 p.m. UTC
You can easily run out of GTT space with the current fixed allocation
of 64MB.  Bump it to 128MB to avoid sporadic page-fault errors with
the simulator.
---
 tools/aubdump.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/tools/aubdump.c b/tools/aubdump.c
index d0774c1..80c9d1c 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -151,8 +151,8 @@  data_out(const void *data, size_t size)
 static uint32_t
 gtt_size(void)
 {
-	/* Enough for 64MB assuming 4kB pages. */
-	const unsigned entries = 0x4000;
+	/* Enough for 128MB assuming 4kB pages. */
+	const unsigned entries = 0x8000;
 	return entries * (gen >= 8 ? 8 : 4);
 }