aboutsummaryrefslogtreecommitdiff
path: root/loader/phys_dev_ext.c
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2017-01-26 12:16:30 -0700
committerMark Lobodzinski <mark@lunarg.com>2017-01-26 13:42:36 -0700
commit2dbc2668169e3aa0920615f3d9078a904827ee25 (patch)
treed1bbe0a79bd08b7583de761b34370ce8a024eb9b /loader/phys_dev_ext.c
parenta5eea415de5d59186dcbd74f76a5bcdf8ffed8de (diff)
downloadusermoji-2dbc2668169e3aa0920615f3d9078a904827ee25.tar.xz
repo: Clang-format c/cpp/h LVL files using LLVM
Bring all source files in the repo up to date with consistent coding style/standard. Change-Id: Iceedbc17109974d3a0437fc4995441c9ad7e0c23
Diffstat (limited to 'loader/phys_dev_ext.c')
-rw-r--r--loader/phys_dev_ext.c36
1 files changed, 15 insertions, 21 deletions
diff --git a/loader/phys_dev_ext.c b/loader/phys_dev_ext.c
index 27a09ef3..cf2ada57 100644
--- a/loader/phys_dev_ext.c
+++ b/loader/phys_dev_ext.c
@@ -34,30 +34,24 @@
#endif
// Trampoline function macro for unknown physical device extension command.
-#define PhysDevExtTramp(num) \
-VKAPI_ATTR void VKAPI_CALL vkPhysDevExtTramp##num( \
- VkPhysicalDevice physical_device) { \
- const struct loader_instance_dispatch_table *disp; \
- disp = loader_get_instance_dispatch(physical_device); \
- disp->phys_dev_ext[num]( \
- loader_unwrap_physical_device(physical_device)); \
+#define PhysDevExtTramp(num) \
+ VKAPI_ATTR void VKAPI_CALL vkPhysDevExtTramp##num(VkPhysicalDevice physical_device) { \
+ const struct loader_instance_dispatch_table *disp; \
+ disp = loader_get_instance_dispatch(physical_device); \
+ disp->phys_dev_ext[num](loader_unwrap_physical_device(physical_device)); \
}
// Terminator function macro for unknown physical device extension command.
-#define PhysDevExtTermin(num) \
-VKAPI_ATTR void VKAPI_CALL vkPhysDevExtTermin##num( \
- VkPhysicalDevice physical_device) { \
- struct loader_physical_device_term *phys_dev_term = \
- (struct loader_physical_device_term *)physical_device; \
- struct loader_icd_term *icd_term = phys_dev_term->this_icd_term; \
- struct loader_instance *inst = \
- (struct loader_instance *)icd_term->this_instance; \
- if (NULL == icd_term->phys_dev_ext[num]) { \
- loader_log(inst, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0, \
- "Extension %s not supported for this physical device", \
- inst->phys_dev_ext_disp_hash[num].func_name); \
- } \
- icd_term->phys_dev_ext[num](phys_dev_term->phys_dev); \
+#define PhysDevExtTermin(num) \
+ VKAPI_ATTR void VKAPI_CALL vkPhysDevExtTermin##num(VkPhysicalDevice physical_device) { \
+ struct loader_physical_device_term *phys_dev_term = (struct loader_physical_device_term *)physical_device; \
+ struct loader_icd_term *icd_term = phys_dev_term->this_icd_term; \
+ struct loader_instance *inst = (struct loader_instance *)icd_term->this_instance; \
+ if (NULL == icd_term->phys_dev_ext[num]) { \
+ loader_log(inst, VK_DEBUG_REPORT_ERROR_BIT_EXT, 0, "Extension %s not supported for this physical device", \
+ inst->phys_dev_ext_disp_hash[num].func_name); \
+ } \
+ icd_term->phys_dev_ext[num](phys_dev_term->phys_dev); \
}
// Disable clang-format for lists of macros