s->info.stage = stage;
/* Call out to Midgard compiler given the above NIR */
- panfrost_program program = {};
+ panfrost_program program = {0};
memcpy(program.rt_formats, state->rt_formats, sizeof(program.rt_formats));
if (dev->quirks & IS_BIFROST) {
}
for (unsigned i = 0; i < rt_count; ++i) {
- struct mali_blend_flags_packed flags = {};
+ struct mali_blend_flags_packed flags = {0};
pan_pack(&flags, BLEND_FLAGS, cfg) {
if (blend[i].no_colour) {
pan_blit_from_staging(struct pipe_context *pctx, struct panfrost_gtransfer *trans)
{
struct pipe_resource *dst = trans->base.resource;
- struct pipe_blit_info blit = {};
+ struct pipe_blit_info blit = {0};
blit.dst.resource = dst;
blit.dst.format = dst->format;
pan_blit_to_staging(struct pipe_context *pctx, struct panfrost_gtransfer *trans)
{
struct pipe_resource *src = trans->base.resource;
- struct pipe_blit_info blit = {};
+ struct pipe_blit_info blit = {0};
blit.src.resource = src;
blit.src.format = src->format;
default_fields.append(" .{} = {{ {}_header }}".format(field.name, self.gen_prefix(safe_name(field.type.upper()))))
print('#define %-40s\\' % (name + '_header'))
- print(", \\\n".join(default_fields))
+ if default_fields:
+ print(", \\\n".join(default_fields))
+ else:
+ print(' 0')
print('')
def emit_template_struct(self, name, group, opaque_structs):