xref: /linux/drivers/gpu/drm/amd/display/dc/basics/dc_common.h (revision 8be98d2f2a0a262f8bf8a0bc1fdf522b3c7aab17)
178c77382SAnthony Koo /*
278c77382SAnthony Koo  * Copyright 2012-15 Advanced Micro Devices, Inc.
378c77382SAnthony Koo  *
478c77382SAnthony Koo  * Permission is hereby granted, free of charge, to any person obtaining a
578c77382SAnthony Koo  * copy of this software and associated documentation files (the "Software"),
678c77382SAnthony Koo  * to deal in the Software without restriction, including without limitation
778c77382SAnthony Koo  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
878c77382SAnthony Koo  * and/or sell copies of the Software, and to permit persons to whom the
978c77382SAnthony Koo  * Software is furnished to do so, subject to the following conditions:
1078c77382SAnthony Koo  *
1178c77382SAnthony Koo  * The above copyright notice and this permission notice shall be included in
1278c77382SAnthony Koo  * all copies or substantial portions of the Software.
1378c77382SAnthony Koo  *
1478c77382SAnthony Koo  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1578c77382SAnthony Koo  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1678c77382SAnthony Koo  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
1778c77382SAnthony Koo  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
1878c77382SAnthony Koo  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1978c77382SAnthony Koo  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2078c77382SAnthony Koo  * OTHER DEALINGS IN THE SOFTWARE.
2178c77382SAnthony Koo  *
2278c77382SAnthony Koo  * Authors: AMD
2378c77382SAnthony Koo  *
2478c77382SAnthony Koo  */
2578c77382SAnthony Koo 
2678c77382SAnthony Koo #ifndef __DAL_DC_COMMON_H__
2778c77382SAnthony Koo #define __DAL_DC_COMMON_H__
2878c77382SAnthony Koo 
2978c77382SAnthony Koo #include "core_types.h"
3078c77382SAnthony Koo 
3178c77382SAnthony Koo bool is_rgb_cspace(enum dc_color_space output_color_space);
3278c77382SAnthony Koo 
33*e7a30adeSWesley Chalmers bool is_lower_pipe_tree_visible(struct pipe_ctx *pipe_ctx);
3478c77382SAnthony Koo 
35*e7a30adeSWesley Chalmers bool is_upper_pipe_tree_visible(struct pipe_ctx *pipe_ctx);
3678c77382SAnthony Koo 
3778c77382SAnthony Koo bool is_pipe_tree_visible(struct pipe_ctx *pipe_ctx);
3878c77382SAnthony Koo 
3978c77382SAnthony Koo void build_prescale_params(struct  dc_bias_and_scale *bias_and_scale,
4078c77382SAnthony Koo 		const struct dc_plane_state *plane_state);
4178c77382SAnthony Koo 
4278c77382SAnthony Koo #endif
43