LUT_RAM_A
else if (mode == LUT_RAM_A)
CM_3DLUT_RAM_SEL, mode == LUT_RAM_A ? 0 : 1,
mode = LUT_RAM_A;
mode = LUT_RAM_A;
if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A)
next_mode = LUT_RAM_A;
dpp20_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A);
if (next_mode == LUT_RAM_A)
next_mode == LUT_RAM_A ? 1:2);
mode = LUT_RAM_A;
if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A)
next_mode = LUT_RAM_A;
dpp20_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A);
if (next_mode == LUT_RAM_A)
REG_SET(CM_SHAPER_CONTROL, 0, CM_SHAPER_LUT_MODE, next_mode == LUT_RAM_A ? 1:2);
mode = LUT_RAM_A;
if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A)
next_mode = LUT_RAM_A;
dpp3_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A);
if (next_mode == LUT_RAM_A)
REG_SET(CM_SHAPER_CONTROL, 0, CM_SHAPER_LUT_MODE, next_mode == LUT_RAM_A ? 1:2);
mode = LUT_RAM_A;
else if (mode == LUT_RAM_A)
CM_3DLUT_RAM_SEL, mode == LUT_RAM_A ? 0 : 1,
mode = LUT_RAM_A;
s->gamcor_mode = LUT_RAM_A; // Otherwise, LUT_RAM_B
mode = LUT_RAM_A;
next_mode = LUT_RAM_A;
dpp3_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A);
if (next_mode == LUT_RAM_A)
CM_BLNDGAM_SELECT, next_mode == LUT_RAM_A ? 0 : 1);
s->rgam_lut_mode = LUT_RAM_A; // Otherwise, LUT_RAM_B
mode = LUT_RAM_A;
if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A)
next_mode = LUT_RAM_A;
dpp3_configure_gamcor_lut(dpp_base, next_mode == LUT_RAM_A);
next_mode == LUT_RAM_A);
REG_UPDATE(CM_GAMCOR_CONTROL, CM_GAMCOR_SELECT, next_mode == LUT_RAM_A ? 0:1);
mode = LUT_RAM_A;
mode = LUT_RAM_A;
if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A)
next_mode = LUT_RAM_A;
dwb3_configure_ogam_lut(dwbc30, next_mode == LUT_RAM_A);
if (next_mode == LUT_RAM_A)
REG_UPDATE(DWB_OGAM_CONTROL, DWB_OGAM_SELECT, next_mode == LUT_RAM_A ? 0 : 1);
mode = LUT_RAM_A;
next_mode == LUT_RAM_A ? 1:2);
if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A)
next_mode = LUT_RAM_A;
mpc20_configure_ogam_lut(mpc, mpcc_id, next_mode == LUT_RAM_A);
if (next_mode == LUT_RAM_A)
next_mode == LUT_RAM_A ? 1:2);
mode = LUT_RAM_A;
mode = LUT_RAM_A;
next_mode = LUT_RAM_A;
else if (current_mode == LUT_RAM_A)
next_mode = LUT_RAM_A;
mpc3_configure_ogam_lut(mpc, mpcc_id, next_mode == LUT_RAM_A);
if (next_mode == LUT_RAM_A)
MPCC_OGAM_SELECT, next_mode == LUT_RAM_A ? 0:1);
mode = LUT_RAM_A;
if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A)
next_mode = LUT_RAM_A;
mpc3_configure_shaper_lut(mpc, next_mode == LUT_RAM_A, rmu_idx);
if (next_mode == LUT_RAM_A)
REG_SET(SHAPER_CONTROL[rmu_idx], 0, MPC_RMU_SHAPER_LUT_MODE, next_mode == LUT_RAM_A ? 1:2);
else if (mode == LUT_RAM_A)
mode = LUT_RAM_A;
MPC_RMU_3DLUT_RAM_SEL, mode == LUT_RAM_A ? 0 : 1,
mode = LUT_RAM_A;
next_mode = LUT_RAM_A;
mpc32_configure_post1dlut(mpc, mpcc_id, next_mode == LUT_RAM_A);
if (next_mode == LUT_RAM_A)
MPCC_MCM_1DLUT_SELECT, next_mode == LUT_RAM_A ? 0 : 1);
mode = LUT_RAM_A;
if (current_mode == LUT_BYPASS || current_mode == LUT_RAM_A)
next_mode = LUT_RAM_A;
mpc32_configure_shaper_lut(mpc, next_mode == LUT_RAM_A, mpcc_id);
if (next_mode == LUT_RAM_A)
REG_SET(MPCC_MCM_SHAPER_CONTROL[mpcc_id], 0, MPCC_MCM_SHAPER_LUT_MODE, next_mode == LUT_RAM_A ? 1:2);
mode = LUT_RAM_A;
MPCC_MCM_3DLUT_RAM_SEL, mode == LUT_RAM_A ? 0 : 1,
else if (mode == LUT_RAM_A)
mode = LUT_RAM_A;
const enum dc_lut_mode next_mode = lut_bank_a ? LUT_RAM_A : LUT_RAM_B;
mpc32_configure_post1dlut(mpc, mpcc_id, next_mode == LUT_RAM_A);
if (next_mode == LUT_RAM_A)
mpc32_configure_shaper_lut(mpc, next_mode == LUT_RAM_A, mpcc_id);
if (next_mode == LUT_RAM_A)
mode = LUT_RAM_A;