[PATCH] Allow/Fix use of multiple ZaphodHead outputs per x-screen. (v2)
Michel Dänzer
michel at daenzer.net
Wed Jun 10 20:36:00 PDT 2015
On 11.06.2015 03:55, Mario Kleiner wrote:
> Defining multiple ZaphodHead outputs per x-screen in a
> multiple x-screen's per gpu configuration caused all
> outputs except one per x-screen to go dark, because
> there was a fixed mapping x-screen number -> crtc number,
> limiting the number of crtc's per x-screen to one.
>
> On a ZaphodHead's setup, be more clever and assign
> as many crtc's to a given x-screen as there are
> ZaphodHeads defined for that screen, assuming
> there are enough unused crtc's available.
>
> Tested on a triple display setup with different combos
> of one, two or three ZaphodHeads per one, two or three
> x-screens.
>
> This is a port of almost identical code from
> nouveau-ddx.
>
> v2: Implement suggestions by Michel Daenzer: Less verbose
> debug output, more clear warning message on crtc allocation
> failure. Move clearing of per gpu assigned_crtc mask to
> CloseScreen, indeed testing shows no need for the more
> complex new server generation check from v1.
>
> Signed-off-by: Mario Kleiner <mario.kleiner.de at gmail.com>
> (v1) Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
Reviewed and pushed with a slightly modified commit log, thanks!
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the xorg-driver-ati
mailing list