1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>struct drm_fb_helper_surface_size</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux DRM Developer's Guide"><link rel="up" href="ch02s05.html#idp1125647748" title="fbdev Helper Functions Reference"><link rel="prev" href="API-drm-fb-helper-hotplug-event.html" title="drm_fb_helper_hotplug_event"><link rel="next" href="API-struct-drm-fb-helper-funcs.html" title="struct drm_fb_helper_funcs"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct drm_fb_helper_surface_size</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-drm-fb-helper-hotplug-event.html">Prev</a>&#160;</td><th width="60%" align="center">fbdev Helper Functions Reference</th><td width="20%" align="right">&#160;<a accesskey="n" href="API-struct-drm-fb-helper-funcs.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-drm-fb-helper-surface-size"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct drm_fb_helper_surface_size &#8212; 
2  describes fbdev size and scanout surface size
3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting">
4struct drm_fb_helper_surface_size {
5  u32 fb_width;
6  u32 fb_height;
7  u32 surface_width;
8  u32 surface_height;
9  u32 surface_bpp;
10  u32 surface_depth;
11};  </pre></div><div class="refsect1"><a name="idp1125792852"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">fb_width</span></dt><dd><p>
12fbdev width
13      </p></dd><dt><span class="term">fb_height</span></dt><dd><p>
14fbdev height
15      </p></dd><dt><span class="term">surface_width</span></dt><dd><p>
16scanout buffer width
17      </p></dd><dt><span class="term">surface_height</span></dt><dd><p>
18scanout buffer height
19      </p></dd><dt><span class="term">surface_bpp</span></dt><dd><p>
20scanout buffer bpp
21      </p></dd><dt><span class="term">surface_depth</span></dt><dd><p>
22scanout buffer depth
23      </p></dd></dl></div></div><div class="refsect1"><a name="idp1125797612"></a><h2>Description</h2><p>
24   Note that the scanout surface width/height may be larger than the fbdev
25   width/height.  In case of multiple displays, the scanout surface is sized
26   according to the largest width/height (so it is large enough for all CRTCs
27   to scanout).  But the fbdev width/height is sized to the minimum width/
28   height of all the displays.  This ensures that fbcon fits on the smallest
29   of the attached displays.
30   </p><p>
31
32   So what is passed to <code class="function">drm_fb_helper_fill_var</code> should be fb_width/fb_height,
33   rather than the surface size.
34</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-drm-fb-helper-hotplug-event.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="ch02s05.html#idp1125647748">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="API-struct-drm-fb-helper-funcs.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">drm_fb_helper_hotplug_event</span>&#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;<span class="phrase">struct drm_fb_helper_funcs</span></td></tr></table></div></body></html>
35