[haiku-commits] Re: haiku: hrev43747 - in src/add-ons: accelerants/radeon_hd kernel/drivers/graphics/radeon_hd

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 17 Feb 2012 22:47:13 +0100

On 02/17/2012 09:40 PM, Alexander von Gluck wrote:
On 17.02.2012 14:24, Axel Dörfler wrote:
Why does it have to be an edid struct? At least IIRC the app_server
should be able to work independently from that,
so if you don't really need it elsewhere, there should be no need to
go that far.
Mostly I was targeting a simulated edid because that's what i've
returned so far via:
http://cgit.haiku-os.org/haiku/tree/src/add-ons/accelerants/radeon_hd/mode.cpp#n87

through
http://cgit.haiku-os.org/haiku/tree/src/add-ons/accelerants/radeon_hd/hooks.cpp#n44

Is there another hook that I should be (or can be using) to pass mode
data to the app_server for something besides edid?

Sure, see:
http://cgit.haiku-os.org/haiku/tree/headers/os/add-ons/graphics/Accelerant.h#n52

On the app_server side, the EDID information is always optional, it is, depending on the internal usage, superseded by

See (B_GET_PREFERRED_DISPLAY_MODE):
http://cgit.haiku-os.org/haiku/tree/src/servers/app/drawing/AccelerantHWInterface.cpp#n856

and (B_GET_MONITOR_INFO):
http://cgit.haiku-os.org/haiku/tree/src/servers/app/drawing/AccelerantHWInterface.cpp#n941

HTH,

Bye,
   Axel.

Other related posts: