privates: Resize GPU screen-specific privates too
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 <keithp@keithp.com>
This commit is contained in:
parent
d1c639c006
commit
ea8b04507e
|
@ -315,6 +315,11 @@ grow_screen_specific_set(DevPrivateType type, unsigned bytes)
|
|||
for (s = 0; s < screenInfo.numScreens; s++) {
|
||||
ScreenPtr pScreen = screenInfo.screens[s];
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user