panfrost: Use pack for general varying

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6326>
This commit is contained in:
Alyssa Rosenzweig 2020-08-14 15:23:10 -04:00 committed by Marge Bot
parent 6c850637f5
commit 59fa26902d
1 changed files with 6 additions and 8 deletions

View File

@ -1715,14 +1715,12 @@ pan_emit_vary(struct mali_attribute_packed *out,
panfrost_get_default_swizzle(nr_channels) :
panfrost_bifrost_swizzle(nr_channels);
struct mali_attr_meta meta = {
.index = pan_varying_index(present, buf),
.unknown1 = quirks & IS_BIFROST ? 0x0 : 0x2,
.format = (format << 12) | swizzle,
.src_offset = offset
};
memcpy(out, &meta, sizeof(meta));
pan_pack(out, ATTRIBUTE, cfg) {
cfg.buffer_index = pan_varying_index(present, buf);
cfg.unknown = quirks & IS_BIFROST ? 0x0 : 0x1;
cfg.format = (format << 12) | swizzle;
cfg.offset = offset;
}
}
/* General varying that is unused */