intel/tools: Support multiple contexts in intel_dump_gpu.
authorRafael Antognolli <rafael.antognolli@intel.com>
Mon, 16 Sep 2019 16:07:26 +0000 (09:07 -0700)
committerRafael Antognolli <rafael.antognolli@intel.com>
Thu, 10 Oct 2019 14:08:50 +0000 (14:08 +0000)
commit01122a78b33489d9fdb5f41d04617e3130989c4a
tree33deab8aedcefb35e854e2820229e662514f83d9
parent12feafc28eec8dfa5ae7e9a0b90ef0b2b9ea8f00
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 <lionel.g.landwerlin@intel.com>
src/intel/tools/aub_write.c
src/intel/tools/aub_write.h
src/intel/tools/error2aub.c
src/intel/tools/intel_dump_gpu.c