summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h
diff options
context:
space:
mode:
authorEric Bernstein <eric.bernstein@amd.com>2017-10-02 15:03:50 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-10-21 16:48:30 -0400
commit81739b7f49bfded3bbd0b29c5213e9bcbea3c58d (patch)
tree0b97ea0277dc7a4d0ac7c902ee4528f43d5be8ca /drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h
parent8feabd03d34e4555c119e69269dae28f52e0d86c (diff)
downloadlinux-stable-81739b7f49bfded3bbd0b29c5213e9bcbea3c58d.tar.gz
linux-stable-81739b7f49bfded3bbd0b29c5213e9bcbea3c58d.tar.bz2
linux-stable-81739b7f49bfded3bbd0b29c5213e9bcbea3c58d.zip
drm/amd/display: Add DPP capabilities
Signed-off-by: Eric Bernstein <eric.bernstein@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h23
1 files changed, 6 insertions, 17 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h
index 153aa3c32762..4cf18a500dcd 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_dpp.h
@@ -1264,23 +1264,6 @@ struct dcn10_dpp {
bool is_write_to_ram_a_safe;
};
-
-enum lb_memory_config {
- /* Enable all 3 pieces of memory */
- LB_MEMORY_CONFIG_0 = 0,
-
- /* Enable only the first piece of memory */
- LB_MEMORY_CONFIG_1 = 1,
-
- /* Enable only the second piece of memory */
- LB_MEMORY_CONFIG_2 = 2,
-
- /* Only applicable in 4:2:0 mode, enable all 3 pieces of memory and the
- * last piece of chroma memory used for the luma storage
- */
- LB_MEMORY_CONFIG_3 = 3
-};
-
enum dcn10_input_csc_select {
INPUT_CSC_SELECT_BYPASS = 0,
INPUT_CSC_SELECT_ICSC,
@@ -1292,6 +1275,12 @@ bool is_lb_conf_valid(
int num_partitions,
int vtaps);
+void dscl1_calc_lb_num_partitions(
+ const struct scaler_data *scl_data,
+ enum lb_memory_config lb_config,
+ int *num_part_y,
+ int *num_part_c);
+
void ippn10_degamma_ram_select(
struct transform *xfm_base,
bool use_ram_a);