diff options
author | Keith Packard <keithp@keithp.com> | 2012-07-09 16:30:24 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-07-09 16:30:24 -0700 |
commit | ea8b04507e5464e4817791db516a20cfed2a6724 (patch) | |
tree | 0c4dfb947efdb5393cd14e373ba2cca0d6d98c85 /dix | |
parent | d1c639c006526b8cab14dac582508f3f54848967 (diff) |
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>
Diffstat (limited to 'dix')
-rw-r--r-- | dix/privates.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dix/privates.c b/dix/privates.c index 740ead739..55b9345a7 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); + } } /* |