intel/tools/aub_dump: fix crash when using the default legacy context
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sat, 11 Jan 2020 15:05:46 +0000 (17:05 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 25 Feb 2020 18:56:45 +0000 (20:56 +0200)
commit31461e2379321cb0d4eeb28fb74fd78d2fd0bff6
tree77dc3ecf3131b6ef3f11b3518913c602feebdb96
parent76bf38eaf0b6c839eaa4a36990e4b14b8095b7eb
intel/tools/aub_dump: fix crash when using the default legacy context

When execbuffer->rsvd1 == 0, the legacy context is used. Ensure we
have context created for this.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3705>
src/intel/tools/aub_write.c