summaryrefslogtreecommitdiff
path: root/tools/aubdump.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-11-23 16:40:00 -0800
committerJason Ekstrand <jason.ekstrand@intel.com>2016-11-28 16:46:34 -0800
commit16cd4118877d4df7c2e6fe4879de8021e95b1877 (patch)
tree96cffacc40780313728963ca06c53cf6615d0859 /tools/aubdump.c
parentd072258551119d07356e6f5728392bda2f3727a9 (diff)
Revert "aubdump: Bump the GTT size to 256MB"
This reverts commit c6191a41f6c858cbdd4280e9ffcc91170e87ebeb. It turns out that having a GTT that large causes the simulator massive headaches. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'tools/aubdump.c')
-rw-r--r--tools/aubdump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/aubdump.c b/tools/aubdump.c
index 89042559..b1c46e2b 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -176,8 +176,8 @@ gtt_entry_size(void)
static uint32_t
gtt_size(void)
{
- /* Enough for 256MB assuming 4kB pages. */
- const unsigned entries = 0x10000;
+ /* Enough for 64MB assuming 4kB pages. */
+ const unsigned entries = 0x4000;
return entries * gtt_entry_size();
}
@@ -197,7 +197,7 @@ write_header(void)
dword_out(0); /* timestamp */
dword_out(0); /* comment len */
- /* Set up the GTT. The max we can handle is 256M */
+ /* Set up the GTT. The max we can handle is 64M */
dword_out(CMD_AUB_TRACE_HEADER_BLOCK | ((gen >= 8 ? 6 : 5) - 2));
dword_out(AUB_TRACE_MEMTYPE_GTT_ENTRY |
AUB_TRACE_TYPE_NOTYPE | AUB_TRACE_OP_DATA_WRITE);