radv: enable secure compile support
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 31 Jul 2019 04:06:46 +0000 (14:06 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 26 Oct 2019 02:04:12 +0000 (13:04 +1100)
commitcff53da3748df296d104fe91fca13111296ce527
treeced666e15c064b388b7b9f124d202a74e0f20db9
parent57c95d2ce239dbec7212b2879901e455ef29fc6c
radv: enable secure compile support

Can be enabled via the environment variable which tells the
driver how many compilation threads are expected to be called,
and therefore how many forked processes the driver should
create.

For example we would expect to call fossilize replay with
something like this:

RADV_SECURE_COMPILE_THREADS=8 ./fossilize-replay --num-threads 8 \
--shader-cache-size 0 --ignore-derived-pipelines pipeline_cache.foz

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_pipeline.c