Use 0x3 channel mask instead.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19216>
packed = packf(&ctx->ac, pack_args);
args->out[chan] = ac_to_float(&ctx->ac, packed);
}
- args->compr = 1; /* COMPR flag */
}
/* Pack i16/u16. */
packed = packi(&ctx->ac, pack_args, is_int8 ? 8 : is_int10 ? 10 : 16, chan == 1);
args->out[chan] = ac_to_float(&ctx->ac, packed);
}
- args->compr = 1; /* COMPR flag */
}
+
+ if (packf || packi) {
+ if (ctx->options->gfx_level >= GFX11) {
+ args->enabled_channels = 0x3;
+ } else {
+ args->compr = 1; /* COMPR flag */
+ }
+ }
+
return;
}