Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 936a8dcd authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: include: add pre-downscale fields to scaler config"

parents 8b09fda5 38f129ee
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
/*
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2018, 2020, The Linux Foundation. All rights reserved.
 */

#ifndef _SDE_DRM_H_
@@ -226,6 +226,7 @@ struct sde_drm_de_v1 {

#define SDE_DRM_QSEED3LITE
#define SDE_DRM_QSEED4
#define SDE_DRM_INLINE_PREDOWNSCALE

/**
 * struct sde_drm_scaler_v2 - version 2 of struct sde_drm_scaler
@@ -259,6 +260,10 @@ struct sde_drm_de_v1 {
 * @unsharp_mask_blend: Unsharp Blend Filter Ratio
 * @de_blend:          Ratio of two unsharp mask filters
 * @flags:             Scaler configuration flags
 * @pre_downscale_x_0  Pre-downscale ratio, x-direction, plane 0(Y/RGB)
 * @pre_downscale_x_1  Pre-downscale ratio, x-direction, plane 1(UV)
 * @pre_downscale_y_0  Pre-downscale ratio, y-direction, plane 0(Y/RGB)
 * @pre_downscale_y_1  Pre-downscale ratio, y-direction, plane 1(UV)
 */
struct sde_drm_scaler_v2 {
	/*
@@ -316,6 +321,14 @@ struct sde_drm_scaler_v2 {
	uint32_t unsharp_mask_blend;
	uint32_t de_blend;
	uint32_t flags;

	/*
	 * Inline pre-downscale settings
	 */
	uint32_t pre_downscale_x_0;
	uint32_t pre_downscale_x_1;
	uint32_t pre_downscale_y_0;
	uint32_t pre_downscale_y_1;
};

/* Number of dest scalers supported */