diff options
author | Rafael Antognolli <[email protected]> | 2019-09-16 09:07:26 -0700 |
---|---|---|
committer | Rafael Antognolli <[email protected]> | 2019-10-10 14:08:50 +0000 |
commit | 01122a78b33489d9fdb5f41d04617e3130989c4a (patch) | |
tree | 33deab8aedcefb35e854e2820229e662514f83d9 /src/intel/tools/error2aub.c | |
parent | 12feafc28eec8dfa5ae7e9a0b90ef0b2b9ea8f00 (diff) |
intel/tools: Support multiple contexts in intel_dump_gpu.
Create basic aub_context on GEM_CONTEXT_CREATE.
Set it up and submit a context + ring + pphwsp during execbuf
submission, if it has not been initialized yet.
v2: Write the HWSP only once per engine (Lionel).
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/tools/error2aub.c')
-rw-r--r-- | src/intel/tools/error2aub.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/intel/tools/error2aub.c b/src/intel/tools/error2aub.c index 62c3fdd0f7e..48cd8a0666f 100644 --- a/src/intel/tools/error2aub.c +++ b/src/intel/tools/error2aub.c @@ -540,8 +540,12 @@ main(int argc, char *argv[]) if (aub_use_execlists(&aub)) { fail_if(!hwsp_bo, "Failed to find Context buffer.\n"); aub_write_context_execlists(&aub, hwsp_bo->addr + 4096 /* skip GuC page */, hwsp_bo->engine_class); - } else - aub_write_exec(&aub, batch_bo->addr, 0, I915_ENGINE_CLASS_RENDER); + } else { + /* Use context id 0 -- if we are not using execlists it doesn't matter + * anyway + */ + aub_write_exec(&aub, 0, batch_bo->addr, 0, I915_ENGINE_CLASS_RENDER); + } /* Cleanup */ list_for_each_entry_safe(struct bo, bo_entry, &bo_list, link) { |