Commit fc21a08
committed
Increase screen pixmap size beyond initial video RAM if needed
If FBBase is not backed by grant tables, it's now possible to reallocate
it. This is especially useful when new external display is connected and
the overall resolution is increased.
Note the realloc() call may change FBBase address. In practice, FBBase
is given to fbScreenInit, and it does save it at some point
(fbScreenInit->fbFinishScreenInit->miScreenInit->miScreenDevPrivateInit),
but then it's used only to attach it to the screen pixmap, which is
updated via ModifyPixmapHeader() call few lines below anyway.
This change adjusts also pScrn->videoRam. But fortunately X server seems
to use it only at startup, and only to validate initial modes list.
Fixes QubesOS/qubes-issues#74481 parent f1798d3 commit fc21a08
1 file changed
+32
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
410 | | - | |
| 409 | + | |
411 | 410 | | |
412 | | - | |
413 | | - | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
414 | 414 | | |
415 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
416 | 444 | | |
417 | 445 | | |
418 | 446 | | |
| |||
0 commit comments