radeonsi: drop unfinished shader compilations when destroying shaders
authorMarek Olšák <marek.olsak@amd.com>
Wed, 31 May 2017 16:02:54 +0000 (18:02 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 7 Jun 2017 16:43:42 +0000 (18:43 +0200)
commit38bd468a78b149c2cb1d105715231e7241d1dc5c
tree3275574de6fbad00f71514d6c9a63864d46ee571
parent33e507ec23db3778294b75a1485021d2a35b0a22
radeonsi: drop unfinished shader compilations when destroying shaders

If we enqueue too many jobs and destroy the GL context, it may take
several seconds before the jobs finish. Just drop them instead.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_compute.c
src/gallium/drivers/radeonsi/si_state_shaders.c