When allocating new global privates, make sure the gpu screens get their private offsets updated.
This only affects GPU screens that enumerate before the non-GPU screens, which generally requires that the related device be present when the system boots so that it can get an earlier DRM filename. Signed-off-by: Keith Packard <[email protected]> --- dix/privates.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dix/privates.c b/dix/privates.c index 740ead7..55b9345 100644 --- a/dix/privates.c +++ b/dix/privates.c @@ -317,6 +317,11 @@ grow_screen_specific_set(DevPrivateType type, unsigned bytes) grow_private_set(&pScreen->screenSpecificPrivates[type], bytes); } + for (s = 0; s < screenInfo.numGPUScreens; s++) { + ScreenPtr pScreen = screenInfo.gpuscreens[s]; + + grow_private_set(&pScreen->screenSpecificPrivates[type], bytes); + } } /* -- 1.7.10.4 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
