nouveau/mme: Use a designated initializer in mme_fermi_decode()
Otherwise some fields may not be initialized. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30703>
This commit is contained in:
committed by
Marge Bot
parent
7d4fafb0e9
commit
79e0b632a2
@@ -136,9 +136,11 @@ void mme_fermi_decode(struct mme_fermi_inst *insts,
|
||||
for (uint32_t i = 0; i < inst_count; i++) {
|
||||
const uint32_t *b = &in[i];
|
||||
|
||||
insts[i].op = unpack_uint(b, 0, 3);
|
||||
insts[i].end_next = unpack_uint(b, 7, 7);
|
||||
insts[i].dst = unpack_uint(b, 8, 10);
|
||||
insts[i] = (struct mme_fermi_inst) {
|
||||
.op = unpack_uint(b, 0, 3),
|
||||
.end_next = unpack_uint(b, 7, 7),
|
||||
.dst = unpack_uint(b, 8, 10),
|
||||
};
|
||||
|
||||
if (insts[i].op != MME_FERMI_OP_BRANCH) {
|
||||
insts[i].assign_op = unpack_uint(b, 4, 6);
|
||||
|
||||
Reference in New Issue
Block a user