From 5d25aee0058076b44fc23e352f35af8a710624f4 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Thu, 24 Oct 2019 14:17:15 +1100 Subject: [PATCH] radv: add radv_device_use_secure_compile() helper Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_private.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 17e6f35ba20..3bfb8d11859 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -364,6 +364,12 @@ struct radv_instance { struct driOptionCache available_dri_options; }; +static inline +bool radv_device_use_secure_compile(struct radv_instance *instance) +{ + return instance->num_sc_threads; +} + VkResult radv_init_wsi(struct radv_physical_device *physical_device); void radv_finish_wsi(struct radv_physical_device *physical_device); -- 2.30.2