calculate refreshrate from mode info and prefer that value over ScreenInfo::rate

Review Request #123693 - Created May 8, 2015 and submitted

Information
Thomas Lübking
kwin
master
347360
Reviewers
kwin
graesslin

No longer WIP - works as expected but is largely "return 60.0f" stub except on xrandr.

commit ea15129f7396f33ca7a9ca1627648d7f0b8600dd
Author: Thomas Lübking
Date: Sat May 9 16:46:21 2015 +0200

prefer query Screens::refreshRate()                                                                                                                                                                               
ScreenInfo::rate is reporting 50Hz (on at least nvidia)                                                                           ... AGAIN! * sigh*

In addition we check for __GL_SYNC_DISPLAY_DEVICE to pick                                                                         the rate of the screen that the driver will actually sync to                                                                     (hopefully...)                                                                                                                                                                                                   
BUG: 347360

commit a10201a373706f4283598541d50ae4958ebc5a2b
Author: Thomas Lübking
Date: Sat May 9 12:22:31 2015 +0200

add Screens::name(int screen); STUB but for XRandr

required to compare __GL_SYNC_DISPLAY_DEVICE and                                                                                 later on to assign windows to an output rather than                                                                               a screen number

commit b6f9a24fcc87911f6305f8a4f87427c5bc9dc367
Author: Thomas Lübking
Date: Sat May 9 12:21:50 2015 +0200
add OutputInfo class to obtain output names

commit e39ffd895e6ea87fb035c773c81768e68b5a615b
Author: Thomas Lübking
Date: Fri May 8 22:57:13 2015 +0200
add refreshRate to Screens. STUB but for XRandr!

the randr refreshrate is calculated from the current mode

commit 272f4a47d6086bba1bf8bc057a3bc66659280118
Author: Thomas Lübking
Date: Fri May 8 22:55:21 2015 +0200

forward resource modes next to crtcs                                                                                                                                                                             
modes will be required for proper refreshrate detection

proper refreshrate again and supports the screen sync and we've Screens::name() for later

Issues

  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Thomas Lübking
Martin Flöser
Thomas Lübking
Martin Flöser
Thomas Lübking
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 3158e987fa241f95a984be1b6a0dba344d2c0c95 by Thomas Lübking to branch master.
Loading...