summaryrefslogtreecommitdiff
path: root/src/sna/sna_display_fake.c
AgeCommit message (Collapse)Author
2019-09-19sna: Use named initializersVille Syrjälä
Avoid -Wno-missing-field-initializers by using named initializers. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
2016-11-30sna: Handle xf86Randr12 gamma changes in xorg-xserver-1.19Chris Wilson
commit 17213b74fd7fc4c4e2fe7a3781e7422dd482a0ab Author: Michel Dänzer <michel.daenzer@amd.com> Date: Tue Jun 21 16:44:20 2016 +0900 xfree86/modes: Remove xf86RandR12CrtcGetGamma removed the randr_crtc->palettes allocation and initialisation causing a later dereference of the gamma table to crash. Looks like that was just ABI misuse. References: https://bugs.freedesktop.org/show_bug.cgi?id=98855 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-14sna: Avoid double-skipping when deleting arrays of CRTCsChris Wilson
When we call xf86CrtcDestroy/xf86OutputDestroy the arrays are shrunk and the next pointer is then at the current location, so we need to take a step back when iterating over the entire array. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2016-03-14sna: When creating CRTC after initialisation, manually create the RR gammaChris Wilson
RRCrtcCreate does not automatically inherit the gamma ramp, but we must call RRCrtcGammaGet ourselves instead. Otherwise the ramp is left as 0 and this will then overwrite our gamma on VT switch (as for whatever reason it is reapplied). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94465 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-02-04sna: Always mark the virtual outputs as disconnected until usedChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2015-01-13sna: Wrap direct access to ScrnInfoPtr->pScreenChris Wilson
Admittedly ScrnInfoPtr->pScreen has nearly always existed, but for completeness wrap it up in a compat macro. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-26sna: Fix attaching to a headless configurationChris Wilson
ADDFB fails with a headless config (as any fb size is invalid). Fortunately, with headless we can use any depth we like. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-08-05sna: Add some extra logging for hotplugging of outputsChris Wilson
References: https://bugs.freedesktop.org/show_bug.cgi?id=82153 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-05-06sna: Tidy computation of clone/crtcs for fake outputsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-05-02sna: Do not stash drmModeResPtrChris Wilson
In the near future we will be dealing with dynamic discovery of connectors, and so we cannot assume that the mode resources will be static for our lifetime. The first step is to not keep that struct around, but pull out the useful information and discard it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-04-10sna: Don't create slave pixmaps for the virtual CRTCChris Wilson
They only exist as placeholders for remote outputs in the framebuffer and do not need to take part in actually output offloading, so we can forgo creating slave pixmaps and remove the stub function entirely. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2014-04-10sna: Remove defunct Cursor interface on fake CRTCChris Wilson
As we no longer user the xf86Cursor helper, we can forgo filling in stub routines for the fake CRTC. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-11-25sna: Correct plurization of axis for modesetting log messageChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-11-25sna: Include reflections when logging mode changesChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-11-25sna: Log mode switches on virtual outputsChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-11-21sna: Set supported rotations on virtual outputsChris Wilson
As the virtual outputs are created later, they do not get automatically populated with RR properties and we must do that instantiation ourselves. Reported-by: Kirill Müller <mail@kirill-mueller.de> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71846 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-06sna: Include some DBG for the virtual output detectionChris Wilson
So we can see it in the logs along with the regular outputs. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-09-02sna: Check for output->randr_output before dereferencingChris Wilson
As we may call the ->detect() routines during the fallback initial probing, we need to handle the case where the output callbacks are called before RandR is setup. Regresion from commit 8ecb758697af42e8e68edee0d1945986470a9c04 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Sat Aug 31 19:44:50 2013 +0100 sna: Expand the array of fake outputs if the last is used Reported-by: Andreas Reis <andreas.reis@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68843 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-31sna: Expand the array of fake outputs if the last is usedChris Wilson
Always maintain one spare so that we can reconfigure for any number of desired outputs on the fly. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-31sna: Mark fake outputs as disconnected until a user applies a modeChris Wilson
Hide the fake outputs until they are instantiated by a user. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-30sna: Allow user specification of number of VirtualHeadsChris Wilson
Previously, we instantiated a fake output in case we had a machine with no output. (For certain server-class products.) The Bumblee project were also doing something very similar in order to fake an extended desktop on the Intel igfx and copy portions onto a discrete GPU. (The preferred method for doing this upstream is through the use of PRIME). As the code is very similar, we can support both use-cases simultaneously. This adds the option: Section "Device" Driver "intel" Option "VirtualHeads" "<count>" EndSection to allow the user to specify an additional set of fake outputs, which can then be controlled using xrandr. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-08-25sna: Make SetScreenPixmap do as it saysChris Wilson
Make sna_set_screen_pixmap() a little more complete and remove the assertion that the caller manages sna->front. This should make the function easier to reuse. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-07-11sna: Remove the duplicated open-coding of SetScreenPixmapChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-05-30sna: Cleanup up error reporting after failure to init KMS interfaceChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-03-07sna: Disambiguate sna_crtc_resize()Chris Wilson
sna_crtc_resize() operates upon the whole configuration rather than a single crtc like the other sna_crtc_* so rename it to make it distinct. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2013-03-07sna: Supply a fake pipe to run completely headlessChris Wilson
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>