Small API change
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2003-04-01 18:30:23
I want to add a flag passed by userland in fb_var_screeninfo that say, for an LCD using a scaled mode, to either use a full scaling or to keep aspect ratio (when possible). This is quite useful for things like titanium powerbooks with their wide LCDs. Currently, if I set a 1024x768 mode on my 'native' 1152x768, I get a horizontal scaling and no vertical scaling, thus a bad aspect ratio. It can be ok for some things, not for others, I'd like to let userland the choice. MacOS does provide both set of modes as well. In the "keep aspect ratio" mode, the driver would scale both H and V the same (based on the smaller of H and V ratios) and add margins to center the display. On some radeons, I think I even have optional HW automatic centering. We can either define a "flags" field using on of the reserved ones and stuff that (along with 31 remaining bits for whatever other flags we may have, I'm thinking about 6 vs. 8 bits DACs or such other options that are common to enough HW to be worth defining there). We can define a "hw_specific_flags" field. Same as above, but we define the meaning of this field as depending on the driver. That is, we add a way for userland to pass mode attributes (we are really talking about mode attributes here, that should be passed along with setting the mode) that are specific to a given driver, though the problem of identifying the driver type may not be that simple (using the accel type constant ?) Or we can eventually just define a new bit in the "sync" field, that seem to be the most economic way, since we have 32 bits available and only 6 used so far ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/