Mesa (master): radv: add radv_device_use_secure_compile() helper

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Oct 26 02:39:18 UTC 2019


Module: Mesa
Branch: master
Commit: 5d25aee0058076b44fc23e352f35af8a710624f4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5d25aee0058076b44fc23e352f35af8a710624f4

Author: Timothy Arceri <tarceri at itsqueeze.com>
Date:   Thu Oct 24 14:17:15 2019 +1100

radv: add radv_device_use_secure_compile() helper

Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 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);
 




More information about the mesa-commit mailing list