blob: 96c813292242c68b52c320849e7852e43284a6dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*
* linux/drivers/gpu/exynos/g2d/g2d_perf.h
*
* Copyright (C) 2017 Samsung Electronics Co., Ltd.
*
* 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 the GNU
* General Public License for more details.
*/
#ifndef _G2D_PERF_H_
#define _G2D_PEEF_H_
struct g2d_context;
struct g2d_performance_data;
#define perf_index_fmt(layer) \
((((layer)->layer_attr) & G2D_PERF_LAYER_FMTMASK) >> 4)
#define perf_index_rotate(layer) \
(((layer)->layer_attr) & G2D_PERF_LAYER_ROTATE)
#define is_perf_frame_colorfill(frame) \
(((frame)->frame_attr) & G2D_PERF_FRAME_SOLIDCOLORFILL)
#define BTS_PEAK_FPS_RATIO 1667
void g2d_set_performance(struct g2d_context *ctx,
struct g2d_performance_data *data, bool release);
void g2d_put_performance(struct g2d_context *ctx, bool release);
#endif /* _G2D_PERF_H_ */
|