Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 427004 Details for
Bug 574766
black screen xorg-server 1.18 and Nvidia Optimus
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
1.18.1 Reverse Prime patch.
xorg-server-1.18.1-reverse-prime.patch (text/plain), 1.77 KB, created by
Sven B.
on 2016-02-29 14:03:16 UTC
(
hide
)
Description:
1.18.1 Reverse Prime patch.
Filename:
MIME Type:
Creator:
Sven B.
Created:
2016-02-29 14:03:16 UTC
Size:
1.77 KB
patch
obsolete
>diff -urN randr/rrmonitor.c randr.new/rrmonitor.c >--- randr/rrmonitor.c 2016-02-08 23:52:26.000000000 +0100 >+++ randr.new/rrmonitor.c 2016-02-11 11:25:18.437388212 +0100 >@@ -323,7 +323,7 @@ > /* Fill in the primary monitor data first > */ > if (list.client_primary >= 0) { >- RRMonitorSetFromClient(pScrPriv->monitors[list.client_primary], mon); >+ RRMonitorSetFromServer(list.server_crtc[list.server_primary], mon); > mon++; > } else if (list.server_primary >= 0) { > RRMonitorSetFromServer(pScrPriv->crtcs[list.server_primary], mon); >@@ -354,8 +354,8 @@ > > /* And finish with the list of crtc-inspired monitors > */ >- for (c = 0; c < pScrPriv->numCrtcs; c++) { >- RRCrtcPtr crtc = pScrPriv->crtcs[c]; >+ for (c = 0; c < list.num_crtcs; c++) { >+ RRCrtcPtr crtc = list.server_crtc[c]; > if (c == list.server_primary && list.client_primary < 0) > continue; > >diff -urN randr/rroutput.c randr.new/rroutput.c >--- randr/rroutput.c 2016-02-08 23:52:26.000000000 +0100 >+++ randr.new/rroutput.c 2016-02-11 11:28:27.883898671 +0100 >@@ -543,6 +543,7 @@ > WindowPtr pWin; > rrScrPrivPtr pScrPriv; > int ret; >+ ScreenPtr slave; > > REQUEST_SIZE_MATCH(xRRSetOutputPrimaryReq); > >@@ -565,8 +566,19 @@ > > pScrPriv = rrGetScrPriv(pWin->drawable.pScreen); > if (pScrPriv) >+ { > RRSetPrimaryOutput(pWin->drawable.pScreen, pScrPriv, output); > >+ xorg_list_for_each_entry(slave, >+ &pWin->drawable.pScreen->output_slave_list, >+ output_head) { >+ rrScrPrivPtr pSlavePriv; >+ pSlavePriv = rrGetScrPriv(slave); >+ >+ RRSetPrimaryOutput(slave, pSlavePriv, output); >+ } >+ } >+ > return Success; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 574766
: 427004