iris: Reorganise execbuf to have a single point of failure
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 25 Mar 2019 22:32:12 +0000 (22:32 +0000)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 9 May 2019 00:21:07 +0000 (17:21 -0700)
commit8b8125646991fb7e923821bafea9bec3ba355b42
tree7df88eee778692c8541600519ec0ed9966c6824d
parent8b7e19dbc556789ffa1ef364c2ce5b7a3f73b3e9
iris: Reorganise execbuf to have a single point of failure

Propagate the failure from GEM_EXECBUFFER2, cleanup then report failure
if need be. We retain the current behaviour to abort() at the first sign
of trouble -- for a non-robustness context, arguably this is the right
thing to do as the client cannot recover, and the system state is lost.
How to properly integrate with KHR_robustness and reset-strategy is
left as a future exercise.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/gallium/drivers/iris/iris_batch.c