summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2019-10-24 14:17:15 +1100
committerTimothy Arceri <[email protected]>2019-10-26 13:04:12 +1100
commit5d25aee0058076b44fc23e352f35af8a710624f4 (patch)
tree05e2a5f814671a29d3bb7eed95293d03a8be743a /src
parentd33f2165c97ba230b14c67f3c935dd312681129d (diff)
radv: add radv_device_use_secure_compile() helper
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_private.h6
1 files changed, 6 insertions, 0 deletions
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);