gallium/radeon: implement set_device_reset_callback
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 30 Sep 2016 13:21:00 +0000 (15:21 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 5 Oct 2016 13:51:56 +0000 (15:51 +0200)
commitb5cd7dfe3e9a04bf6edd5d100f7c74b8fcb5c277
tree454864b3310df56bfb4d3984e4d2bbc470784afc
parenta1fa8b731fc5ae12b3f4961dd3a841b384177564
gallium/radeon: implement set_device_reset_callback

Check for device reset on flush. It would be nicer if the kernel just
reported this as an error on the submit ioctl (and similarly for fences),
but this will do for now.

Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/r600/r600_hw_context.c
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeonsi/si_hw_context.c