iris: add a iris_context reference to iris_batch
authorMark Janes <markjanes@swizzler.org>
Wed, 28 Oct 2020 21:13:48 +0000 (14:13 -0700)
committerMark Janes <markjanes@swizzler.org>
Tue, 2 Feb 2021 01:24:57 +0000 (17:24 -0800)
commitb338bb70e0df3839718315140f217d173cc6d460
treefda346858a37196c7ebe77dcc3ab0fbe7d144293
parente67b8f504b4cbd1bc951fee4a8f53b19f25d36c8
iris: add a iris_context reference to iris_batch

This eliminates the need to use container_of in error handling code.
INTEL_MEASURE will need to access the iris context from each batch.

suggested-by: Kenneth Graunke <kenneth@whitecape.org>

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7354>
src/gallium/drivers/iris/iris_batch.c
src/gallium/drivers/iris/iris_batch.h
src/gallium/drivers/iris/iris_context.c
src/gallium/drivers/iris/iris_state.c