Uninitialized read.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4505>
bi_pack_registers(struct bi_registers regs)
{
enum bifrost_reg_control ctrl = bi_pack_register_ctrl(regs);
- struct bifrost_regs s;
+ struct bifrost_regs s = { 0 };
uint64_t packed = 0;
if (regs.enabled[1]) {
s.reg0 = regs.port[0];
} else {
/* Port 1 disabled, so set to zero and use port 1 for ctrl */
+ s.ctrl = 0;
s.reg1 = ctrl << 2;
if (regs.enabled[0]) {