grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] DAC palette width retrieval


From: Robert Millan
Subject: [PATCH] DAC palette width retrieval
Date: Sat, 25 Jul 2009 13:44:37 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

When using packed color modes, Linux expects we fill the color
sizes with the value obtained from the DAC.  If we give it zeroes
(like we currently do) it displays a blank screen.

This can be reproduced by attempting to boot Linux with a 8-bit
color mode (e.g. set gfxpayload=800x600x8).

Now I'm not completely sure where does this belong.  I think it's somewhat
generic and we can reasonably expect other OSes to want this information
too, but I'm not completely sure.

An alternative would be to do this query in the Linux loader, but this has
the disadvantage that we're putting backend-specific code in the loader which
aims to be completely backend-independant someday.

Also, tell me what you think about the "getset" hack.  It looks like a clean
way of providing both functions in less space, but then I'm not sure if we
really want both functions.  For now we only use the "set" one.  Then again,
once you have "set" getting "get" comes really cheap.

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."

Attachment: 008_dac_palette_width.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]