asahi: Add some clang-format commas

Otherwise clang-format will mangle this.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20434>
This commit is contained in:
Alyssa Rosenzweig
2022-12-26 09:55:19 -05:00
committed by Marge Bot
parent c1f175c9fa
commit d9dc77f068
5 changed files with 13 additions and 13 deletions

View File

@@ -659,7 +659,7 @@ agx_after_block(agx_block *block)
{ {
return (agx_cursor) { return (agx_cursor) {
.option = agx_cursor_after_block, .option = agx_cursor_after_block,
.block = block .block = block,
}; };
} }
@@ -668,7 +668,7 @@ agx_before_instr(agx_instr *instr)
{ {
return (agx_cursor) { return (agx_cursor) {
.option = agx_cursor_before_instr, .option = agx_cursor_before_instr,
.instr = instr .instr = instr,
}; };
} }
@@ -677,7 +677,7 @@ agx_after_instr(agx_instr *instr)
{ {
return (agx_cursor) { return (agx_cursor) {
.option = agx_cursor_after_instr, .option = agx_cursor_after_instr,
.instr = instr .instr = instr,
}; };
} }
@@ -730,7 +730,7 @@ agx_init_builder(agx_context *ctx, agx_cursor cursor)
{ {
return (agx_builder) { return (agx_builder) {
.shader = ctx, .shader = ctx,
.cursor = cursor .cursor = cursor,
}; };
} }

View File

@@ -414,7 +414,7 @@ agx_ra(agx_context *ctx)
.src_to_collect = src_to_collect, .src_to_collect = src_to_collect,
.ncomps = ncomps, .ncomps = ncomps,
.visited = visited, .visited = visited,
.bound = AGX_NUM_REGS .bound = AGX_NUM_REGS,
}); });
} }
@@ -460,7 +460,7 @@ agx_ra(agx_context *ctx)
copies[n++] = (struct agx_copy) { copies[n++] = (struct agx_copy) {
.dest = base + (i * width), .dest = base + (i * width),
.src = ins->src[i] .src = ins->src[i],
}; };
} }
@@ -484,7 +484,7 @@ agx_ra(agx_context *ctx)
copies[n++] = (struct agx_copy) { copies[n++] = (struct agx_copy) {
.dest = ins->dest[i].value, .dest = ins->dest[i].value,
.src = agx_register(base + (i * width), ins->dest[i].size) .src = agx_register(base + (i * width), ins->dest[i].size),
}; };
} }

View File

@@ -66,7 +66,7 @@ build_background_op(nir_builder *b, enum agx_meta_op op, unsigned rt,
nir_load_preamble(b, 1, 32, (rt * 8) + 0), nir_load_preamble(b, 1, 32, (rt * 8) + 0),
nir_load_preamble(b, 1, 32, (rt * 8) + 2), nir_load_preamble(b, 1, 32, (rt * 8) + 2),
nir_load_preamble(b, 1, 32, (rt * 8) + 4), nir_load_preamble(b, 1, 32, (rt * 8) + 4),
nir_load_preamble(b, 1, 32, (rt * 8) + 6) nir_load_preamble(b, 1, 32, (rt * 8) + 6),
}; };
return nir_vec(b, comp, nr); return nir_vec(b, comp, nr);

View File

@@ -1048,7 +1048,7 @@ agx_create_vertex_elements(struct pipe_context *ctx,
.buf = ve.vertex_buffer_index, .buf = ve.vertex_buffer_index,
.src_offset = ve.src_offset, .src_offset = ve.src_offset,
.format = ve.src_format, .format = ve.src_format,
.divisor = ve.instance_divisor .divisor = ve.instance_divisor,
}; };
} }
@@ -1321,7 +1321,7 @@ agx_create_shader_state(struct pipe_context *pctx,
key.vs.vbuf.strides[i] = 16; key.vs.vbuf.strides[i] = 16;
key.vs.vbuf.attributes[i] = (struct agx_attribute) { key.vs.vbuf.attributes[i] = (struct agx_attribute) {
.buf = i, .buf = i,
.format = PIPE_FORMAT_R32G32B32A32_FLOAT .format = PIPE_FORMAT_R32G32B32A32_FLOAT,
}; };
} }
@@ -1648,8 +1648,8 @@ agx_build_meta(struct agx_batch *batch, bool store, bool partial_render)
.first_layer = surf->u.tex.first_layer, .first_layer = surf->u.tex.first_layer,
.last_layer = surf->u.tex.last_layer, .last_layer = surf->u.tex.last_layer,
.first_level = surf->u.tex.level, .first_level = surf->u.tex.level,
.last_level = surf->u.tex.level .last_level = surf->u.tex.level,
} },
}, true); }, true);
agx_usc_pack(&b, TEXTURE, cfg) { agx_usc_pack(&b, TEXTURE, cfg) {

View File

@@ -369,7 +369,7 @@ demo_mem_map(void *map, size_t size, unsigned *handles, unsigned count,
.resource_id = { handles[i] }, .resource_id = { handles[i] },
.resource_unk = { 0x20 }, .resource_unk = { 0x20 },
.resource_flags = { 0x1 }, .resource_flags = { 0x1 },
.resource_count = 1 .resource_count = 1,
}; };
} }
} }