radv: add radv_sc_read() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 29 Oct 2019 06:43:40 +0000 (17:43 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 30 Oct 2019 04:49:58 +0000 (04:49 +0000)
commit28fff3efbcb15876b44107c56c8d3c3d10d8817e
tree34d50aa26bf875306883b8f6787af16482677365
parent23a6827e4d96f03775f6127ee55ed93cbc279acb
radv: add radv_sc_read() helper

This is a function with timeout support for reading from the pipe
between processes used for secure compile.

Initially we hardcode the timeout to 5 seconds. We can adjust the
timeout limit in future if needed.

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