[haiku-bugs] Re: [Haiku] #12611: screeninfo now also prints the color space and whether overlay is supported

  • From: "rudolfc" <trac@xxxxxxxxxxxx>
  • Date: Sat, 23 Jan 2016 18:50:16 -0000

#12611: screeninfo now also prints the color space and whether overlay is 
supported
-----------------------------------------------+---------------------------
   Reporter:  hypgci                           |      Owner:  nobody
       Type:  enhancement                      |     Status:  new
   Priority:  normal                           |  Milestone:  Unscheduled
  Component:  Applications/Command Line Tools  |    Version:
 Resolution:                                   |  R1/Development
 Blocked By:                                   |   Keywords:  GCI
Has a Patch:  1                                |   Blocking:
                                               |   Platform:  All
-----------------------------------------------+---------------------------

Comment (by rudolfc):

 Hi,

 I'm sorry, but I have to correct pulkomandy. Actually, the app_server is
 currently handling overlay capability of videocards quite buggy!

 As fas as I saw upto now (it so happens I am working on a overlay engine
 atm..) the app_server just once asks the driver if overlay is supported.
 That's wrong.

 Furthermore, the app_server asks this question even before the first mode
 was set. Wrong again. The target mode should be set, and then (only then!)
 the app_server should request the overlay hooks.

 I should open a ticket for this!

 Please have a look at the code for the overlay hook exports in the VIA
 driver and you'll recognize why it should be as I just described (and also
 how Be did it!)

 So, it's entirely valid to check for a certain mode (and colorspace!, but
 also single/dualhead for instance, or virtual larger space than is
 visible..) per mode.

 Background:
 higher res modes require more RAM. possibly leaving not enough RAM for
 overlay. Or: quite possible, for just one offscreen buffer instead of for
 instance 3..

 It's possible 8 bit (indexed) color output space is not supported, while
 others are.

 Probably I can come up with more reasons why the app_server should do it
 as I described..

 Granted, for newer cards there will be less restrictions than for older
 cards... Still, the way Be did it is the only theoretically correct way!

 Oh,
 Since no mode is set before the hooks are requested, chances are some
 cards don't export their hooks, as no set colorspace as output space is
 not supported by definition.

 Bye!

 Rudolf.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12611#comment:6>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: