| /* |
| * 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_PERF_H_ |
| |
| struct g2d_context; |
| struct g2d_performance_data; |
| |
| #define perf_index_fmt(layer) \ |
| (fls((((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_ */ |