2009/9/16 Michel Dänzer <mic...@daenzer.net>:
> From: Michel Dänzer <daen...@vmware.com>
>
> Now that we can handle 16 bpp on big endian as well, we can save VRAM like 
> this
> and probably also improve console output speed. The console only uses a 
> limited
> number of colours anyway. (8 bpp might be even better, but that doesn't seem 
> to
> work properly yet)
>
> This will require changes to the X driver code which tries to preserve the
> console contents, but that never worked for me anyway.
>

It will also cause flicker at boot which is sort of what we want to avoid esp
when you cause a full modeset to happen.

Dave.

> Signed-off-by: Michel Dänzer <daen...@vmware.com>
> ---
>  drivers/gpu/drm/radeon/radeon_fb.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_fb.c 
> b/drivers/gpu/drm/radeon/radeon_fb.c
> index 28818eb..6ee7843 100644
> --- a/drivers/gpu/drm/radeon/radeon_fb.c
> +++ b/drivers/gpu/drm/radeon/radeon_fb.c
> @@ -227,10 +227,10 @@ int radeonfb_create(struct drm_device *dev,
>
>        mode_cmd.width = surface_width;
>        mode_cmd.height = surface_height;
> -       mode_cmd.bpp = 32;
> +       mode_cmd.bpp = 16;
>        /* need to align pitch with crtc limits */
>        mode_cmd.pitch = radeon_align_pitch(rdev, mode_cmd.width, 
> mode_cmd.bpp, fb_tiled) * ((mode_cmd.bpp + 1) / 8);
> -       mode_cmd.depth = 24;
> +       mode_cmd.depth = 16;
>
>        size = mode_cmd.pitch * mode_cmd.height;
>        aligned_size = ALIGN(size, PAGE_SIZE);
> --
> 1.6.3.3
>
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to