fb.c (a3f913ca98925d7e5bae725e9b2b38408215a695) | fb.c (bcb0b461454c9cb3b5804cf75bacaadb52348864) |
---|---|
1/* 2 * Copyright (C) 2012-2013 Avionic Design GmbH 3 * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved. 4 * 5 * Based on the KMS/FB CMA helpers 6 * Copyright (C) 2012 Analog Device Inc. 7 * 8 * This program is free software; you can redistribute it and/or modify --- 18 unchanged lines hidden (view full) --- 27} 28#endif 29 30struct tegra_bo *tegra_fb_get_plane(struct drm_framebuffer *framebuffer, 31 unsigned int index) 32{ 33 struct tegra_fb *fb = to_tegra_fb(framebuffer); 34 | 1/* 2 * Copyright (C) 2012-2013 Avionic Design GmbH 3 * Copyright (C) 2012 NVIDIA CORPORATION. All rights reserved. 4 * 5 * Based on the KMS/FB CMA helpers 6 * Copyright (C) 2012 Analog Device Inc. 7 * 8 * This program is free software; you can redistribute it and/or modify --- 18 unchanged lines hidden (view full) --- 27} 28#endif 29 30struct tegra_bo *tegra_fb_get_plane(struct drm_framebuffer *framebuffer, 31 unsigned int index) 32{ 33 struct tegra_fb *fb = to_tegra_fb(framebuffer); 34 |
35 if (index >= drm_format_num_planes(framebuffer->pixel_format)) | 35 if (index >= framebuffer->format->num_planes) |
36 return NULL; 37 38 return fb->planes[index]; 39} 40 41bool tegra_fb_is_bottom_up(struct drm_framebuffer *framebuffer) 42{ 43 struct tegra_fb *fb = to_tegra_fb(framebuffer); --- 392 unchanged lines hidden --- | 36 return NULL; 37 38 return fb->planes[index]; 39} 40 41bool tegra_fb_is_bottom_up(struct drm_framebuffer *framebuffer) 42{ 43 struct tegra_fb *fb = to_tegra_fb(framebuffer); --- 392 unchanged lines hidden --- |