mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
venus: change SpaceBeforeParens style option
This requires clang-format 11 however. Signed-off-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10326>
This commit is contained in:
parent
11a65dbedc
commit
cbe57963dc
5 changed files with 17 additions and 16 deletions
|
|
@ -35,3 +35,4 @@ PenaltyBreakBeforeFirstCallParameter: 1
|
|||
PenaltyExcessCharacter: 100
|
||||
SpaceAfterCStyleCast: false
|
||||
SpaceBeforeCpp11BracedList: false
|
||||
SpaceBeforeParens: ControlStatementsExceptForEachMacros
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ vn_DestroyCommandPool(VkDevice device,
|
|||
|
||||
vn_async_vkDestroyCommandPool(dev->instance, device, commandPool, NULL);
|
||||
|
||||
list_for_each_entry_safe (struct vn_command_buffer, cmd,
|
||||
&pool->command_buffers, head) {
|
||||
list_for_each_entry_safe(struct vn_command_buffer, cmd,
|
||||
&pool->command_buffers, head) {
|
||||
vn_cs_encoder_fini(&cmd->cs);
|
||||
vn_object_base_fini(&cmd->base);
|
||||
vk_free(alloc, cmd);
|
||||
|
|
@ -82,8 +82,8 @@ vn_ResetCommandPool(VkDevice device,
|
|||
struct vn_device *dev = vn_device_from_handle(device);
|
||||
struct vn_command_pool *pool = vn_command_pool_from_handle(commandPool);
|
||||
|
||||
list_for_each_entry_safe (struct vn_command_buffer, cmd,
|
||||
&pool->command_buffers, head) {
|
||||
list_for_each_entry_safe(struct vn_command_buffer, cmd,
|
||||
&pool->command_buffers, head) {
|
||||
vn_cs_encoder_reset(&cmd->cs);
|
||||
cmd->state = VN_COMMAND_BUFFER_STATE_INITIAL;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -192,8 +192,8 @@ vn_DestroyDescriptorPool(VkDevice device,
|
|||
vn_async_vkDestroyDescriptorPool(dev->instance, device, descriptorPool,
|
||||
NULL);
|
||||
|
||||
list_for_each_entry_safe (struct vn_descriptor_set, set,
|
||||
&pool->descriptor_sets, head) {
|
||||
list_for_each_entry_safe(struct vn_descriptor_set, set,
|
||||
&pool->descriptor_sets, head) {
|
||||
list_del(&set->head);
|
||||
|
||||
vn_object_base_fini(&set->base);
|
||||
|
|
@ -217,8 +217,8 @@ vn_ResetDescriptorPool(VkDevice device,
|
|||
vn_async_vkResetDescriptorPool(dev->instance, device, descriptorPool,
|
||||
flags);
|
||||
|
||||
list_for_each_entry_safe (struct vn_descriptor_set, set,
|
||||
&pool->descriptor_sets, head) {
|
||||
list_for_each_entry_safe(struct vn_descriptor_set, set,
|
||||
&pool->descriptor_sets, head) {
|
||||
list_del(&set->head);
|
||||
|
||||
vn_object_base_fini(&set->base);
|
||||
|
|
|
|||
|
|
@ -1957,7 +1957,7 @@ vn_EnumeratePhysicalDevices(VkInstance _instance,
|
|||
|
||||
VK_OUTARRAY_MAKE(out, pPhysicalDevices, pPhysicalDeviceCount);
|
||||
for (uint32_t i = 0; i < instance->physical_device_count; i++) {
|
||||
vk_outarray_append (&out, physical_dev) {
|
||||
vk_outarray_append(&out, physical_dev) {
|
||||
*physical_dev =
|
||||
vn_physical_device_to_handle(&instance->physical_devices[i]);
|
||||
}
|
||||
|
|
@ -2067,7 +2067,7 @@ vn_GetPhysicalDeviceQueueFamilyProperties(
|
|||
|
||||
VK_OUTARRAY_MAKE(out, pQueueFamilyProperties, pQueueFamilyPropertyCount);
|
||||
for (uint32_t i = 0; i < physical_dev->queue_family_count; i++) {
|
||||
vk_outarray_append (&out, props) {
|
||||
vk_outarray_append(&out, props) {
|
||||
*props =
|
||||
physical_dev->queue_family_properties[i].queueFamilyProperties;
|
||||
}
|
||||
|
|
@ -2596,7 +2596,7 @@ vn_GetPhysicalDeviceQueueFamilyProperties2(
|
|||
|
||||
VK_OUTARRAY_MAKE(out, pQueueFamilyProperties, pQueueFamilyPropertyCount);
|
||||
for (uint32_t i = 0; i < physical_dev->queue_family_count; i++) {
|
||||
vk_outarray_append (&out, props) {
|
||||
vk_outarray_append(&out, props) {
|
||||
*props = physical_dev->queue_family_properties[i];
|
||||
}
|
||||
}
|
||||
|
|
@ -2787,7 +2787,7 @@ vn_EnumerateDeviceExtensionProperties(VkPhysicalDevice physicalDevice,
|
|||
VK_OUTARRAY_MAKE(out, pProperties, pPropertyCount);
|
||||
for (uint32_t i = 0; i < VK_DEVICE_EXTENSION_COUNT; i++) {
|
||||
if (physical_dev->base.base.supported_extensions.extensions[i]) {
|
||||
vk_outarray_append (&out, prop) {
|
||||
vk_outarray_append(&out, prop) {
|
||||
*prop = vk_device_extensions[i];
|
||||
prop->specVersion = physical_dev->extension_spec_versions[i];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,8 +76,8 @@ vn_ring_ge_seqno(const struct vn_ring *ring, uint32_t a, uint32_t b)
|
|||
static void
|
||||
vn_ring_retire_submits(struct vn_ring *ring, uint32_t seqno)
|
||||
{
|
||||
list_for_each_entry_safe (struct vn_ring_submit, submit, &ring->submits,
|
||||
head) {
|
||||
list_for_each_entry_safe(struct vn_ring_submit, submit, &ring->submits,
|
||||
head) {
|
||||
if (!vn_ring_ge_seqno(ring, seqno, submit->seqno))
|
||||
break;
|
||||
|
||||
|
|
@ -171,8 +171,8 @@ vn_ring_fini(struct vn_ring *ring)
|
|||
vn_ring_retire_submits(ring, ring->cur);
|
||||
assert(list_is_empty(&ring->submits));
|
||||
|
||||
list_for_each_entry_safe (struct vn_ring_submit, submit,
|
||||
&ring->free_submits, head)
|
||||
list_for_each_entry_safe(struct vn_ring_submit, submit,
|
||||
&ring->free_submits, head)
|
||||
free(submit);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue