panfrost: Reformat using the new style
Now, that the foreach macro list is complete (I hope), let's reformat drivers that enforce correct formatting in CI. Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Acked-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23275>
This commit is contained in:

committed by
Marge Bot

parent
13c9b490a7
commit
6439edd644
@@ -138,7 +138,8 @@ bi_print_scoreboard_line(unsigned slot, const char *name, uint64_t mask,
|
||||
|
||||
fprintf(fp, "slot %u %s:", slot, name);
|
||||
|
||||
u_foreach_bit64(reg, mask) fprintf(fp, " r%" PRId64, reg);
|
||||
u_foreach_bit64(reg, mask)
|
||||
fprintf(fp, " r%" PRId64, reg);
|
||||
|
||||
fprintf(fp, "\n");
|
||||
}
|
||||
|
@@ -171,8 +171,7 @@ lcra_solve(struct lcra_state *l)
|
||||
|
||||
bool succ = false;
|
||||
|
||||
u_foreach_bit64(r, l->affinity[step])
|
||||
{
|
||||
u_foreach_bit64(r, l->affinity[step]) {
|
||||
l->solutions[step] = r;
|
||||
|
||||
if (lcra_test_linear(l, l->solutions, step)) {
|
||||
|
@@ -89,8 +89,7 @@ bit_block_equal(bi_block *A, bi_block *B)
|
||||
return false;
|
||||
|
||||
list_pair_for_each_entry(bi_instr, insA, insB, &A->instructions,
|
||||
&B->instructions, link)
|
||||
{
|
||||
&B->instructions, link) {
|
||||
if (!bit_instr_equal(insA, insB))
|
||||
return false;
|
||||
}
|
||||
@@ -105,8 +104,7 @@ bit_shader_equal(bi_context *A, bi_context *B)
|
||||
return false;
|
||||
|
||||
list_pair_for_each_entry(bi_block, blockA, blockB, &A->blocks, &B->blocks,
|
||||
link)
|
||||
{
|
||||
link) {
|
||||
if (!bit_block_equal(blockA, blockB))
|
||||
return false;
|
||||
}
|
||||
|
@@ -1504,8 +1504,7 @@ schedule_block(compiler_context *ctx, midgard_block *block)
|
||||
/* We emitted bundles backwards; copy into the block in reverse-order */
|
||||
|
||||
util_dynarray_init(&block->bundles, block);
|
||||
util_dynarray_foreach_reverse(&bundles, midgard_bundle, bundle)
|
||||
{
|
||||
util_dynarray_foreach_reverse(&bundles, midgard_bundle, bundle) {
|
||||
util_dynarray_append(&block->bundles, midgard_bundle, *bundle);
|
||||
}
|
||||
util_dynarray_fini(&bundles);
|
||||
|
@@ -698,8 +698,7 @@ panvk_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
|
||||
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_3_PROPERTIES,
|
||||
};
|
||||
|
||||
vk_foreach_struct(ext, pProperties->pNext)
|
||||
{
|
||||
vk_foreach_struct(ext, pProperties->pNext) {
|
||||
if (vk_get_physical_device_core_1_1_property_ext(ext, &core_1_1))
|
||||
continue;
|
||||
if (vk_get_physical_device_core_1_2_property_ext(ext, &core_1_2))
|
||||
|
@@ -377,8 +377,7 @@ panvk_GetPhysicalDeviceImageFormatProperties2(
|
||||
return result;
|
||||
|
||||
/* Extract input structs */
|
||||
vk_foreach_struct_const(s, base_info->pNext)
|
||||
{
|
||||
vk_foreach_struct_const(s, base_info->pNext) {
|
||||
switch (s->sType) {
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO:
|
||||
external_info = (const void *)s;
|
||||
@@ -392,8 +391,7 @@ panvk_GetPhysicalDeviceImageFormatProperties2(
|
||||
}
|
||||
|
||||
/* Extract output structs */
|
||||
vk_foreach_struct(s, base_props->pNext)
|
||||
{
|
||||
vk_foreach_struct(s, base_props->pNext) {
|
||||
switch (s->sType) {
|
||||
case VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES:
|
||||
external_props = (void *)s;
|
||||
|
@@ -58,8 +58,7 @@ panvk_CreateRenderPass2(VkDevice _device,
|
||||
pass->subpass_count = pCreateInfo->subpassCount;
|
||||
pass->attachments = (void *)pass + attachments_offset;
|
||||
|
||||
vk_foreach_struct_const(ext, pCreateInfo->pNext)
|
||||
{
|
||||
vk_foreach_struct_const(ext, pCreateInfo->pNext) {
|
||||
switch (ext->sType) {
|
||||
case VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO:
|
||||
multiview_info = (VkRenderPassMultiviewCreateInfo *)ext;
|
||||
|
Reference in New Issue
Block a user