radv: add radv_device_use_secure_compile() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 24 Oct 2019 03:17:15 +0000 (14:17 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sat, 26 Oct 2019 02:04:12 +0000 (13:04 +1100)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_private.h

index 17e6f35ba20bd55ac1ceb2274a781dd0c73f1c32..3bfb8d11859f185afd3ebece5ae51bdcbcdc54db 100644 (file)
@@ -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);