Files
android/drivers/misc/mediatek/video/mt6785/videox/layering_rule.h
T
threeeye bc1d038eac REVVL 6 Pro kernel bring-up: full working tree snapshot (2026-09-12)
Squashed backup commit (no shallow-clone history issues) of
xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream
commit 9eece662e) plus all fixes applied to get everpal_defconfig building
clean against a modern (GCC 15.2.0) toolchain -- see the previous commit
message on the lineage-23.2 branch (also in this repo history is not
available here since this is a squashed snapshot; full incremental history
lives in the local DL380 checkout and the upstream GitHub remote).

Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
2026-09-12 13:36:46 +00:00

76 lines
2.0 KiB
C

/* *
* Copyright (C) 2016 MediaTek Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See http://www.gnu.org/licenses/gpl-2.0.html for more details.
*/
#ifndef __LAYER_STRATEGY_EX__
#define __LAYER_STRATEGY_EX__
#include "layering_rule_base.h"
#include "lcm_drv.h"
#define MAX_PHY_OVL_CNT (12)
/* #define HAS_LARB_HRT */
#define HRT_AEE_LAYER_MASK 0xFFFFFFDF
enum DISP_DEBUG_LEVEL {
DISP_DEBUG_LEVEL_CRITICAL = 0,
DISP_DEBUG_LEVEL_ERR,
DISP_DEBUG_LEVEL_WARN,
DISP_DEBUG_LEVEL_DEBUG,
DISP_DEBUG_LEVEL_INFO,
};
enum HRT_LEVEL {
HRT_LEVEL_LEVEL0 = 0,
HRT_LEVEL_LEVEL1,
HRT_LEVEL_LEVEL2,
HRT_LEVEL_LEVEL3,
HRT_LEVEL_NUM,
HRT_LEVEL_DEFAULT = HRT_LEVEL_NUM + 1,
};
enum HRT_TB_TYPE {
HRT_TB_TYPE_GENERAL = 0,
HRT_TB_TYPE_RPO_L0,
HRT_TB_TYPE_RPO_L0L1,
HRT_TB_NUM,
};
enum HRT_BOUND_TYPE {
HRT_BOUND_TYPE_LP4 = 0,
HRT_BOUND_NUM,
};
enum HRT_PATH_SCENARIO {
HRT_PATH_GENERAL = MAKE_UNIFIED_HRT_PATH_FMT(HRT_PATH_RSZ_NONE,
HRT_PATH_PIPE_SINGLE,
HRT_PATH_DISP_DUAL_EXT, 1),
HRT_PATH_RPO_L0 = MAKE_UNIFIED_HRT_PATH_FMT(HRT_PATH_RSZ_PARTIAL,
HRT_PATH_PIPE_SINGLE,
HRT_PATH_DISP_SINGLE, 2),
HRT_PATH_RPO_L0L1 = MAKE_UNIFIED_HRT_PATH_FMT(HRT_PATH_RSZ_PARTIAL,
HRT_PATH_PIPE_SINGLE,
HRT_PATH_DISP_SINGLE, 3),
HRT_PATH_UNKNOWN = MAKE_UNIFIED_HRT_PATH_FMT(0, 0, 0, 4),
HRT_PATH_NUM = MAKE_UNIFIED_HRT_PATH_FMT(0, 0, 0, 5),
};
void layering_rule_init(void);
void update_layering_opt_by_disp_opt(enum DISP_HELPER_OPT option, int value);
unsigned int layering_rule_get_hrt_idx(void);
unsigned long long layering_get_frame_bw(int active_cfg_id);
int layering_get_valid_hrt(int active_config_id);
void copy_hrt_bound_table(int is_larb, int *hrt_table,
int active_config_id);
#endif