nir/serialize: fix missing divergence info after deserialization

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17397>
This commit is contained in:
Iago Toral Quiroga 2022-07-07 12:44:10 +02:00 committed by Marge Bot
parent 48be8a9875
commit 2071804f33
1 changed files with 3 additions and 0 deletions

View File

@ -1389,6 +1389,7 @@ read_load_const(read_ctx *ctx, union packed_instr header)
nir_load_const_instr *lc =
nir_load_const_instr_create(ctx->nir, header.load_const.last_component + 1,
decode_bit_size_3bits(header.load_const.bit_size));
lc->def.divergent = false;
switch (header.load_const.packing) {
case load_const_scalar_hi_19bits:
@ -1478,6 +1479,8 @@ read_ssa_undef(read_ctx *ctx, union packed_instr header)
nir_ssa_undef_instr_create(ctx->nir, header.undef.last_component + 1,
decode_bit_size_3bits(header.undef.bit_size));
undef->def.divergent = false;
read_add_object(ctx, &undef->def);
return undef;
}