From: Timothy Arceri Date: Thu, 24 Oct 2019 03:17:15 +0000 (+1100) Subject: radv: add radv_device_use_secure_compile() helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d25aee0058076b44fc23e352f35af8a710624f4;p=mesa.git radv: add radv_device_use_secure_compile() helper Reviewed-by: Bas Nieuwenhuizen --- 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);