- Feb 06, 2025
-
-
Direct calls to ScreenRec->DestroyPixmap() blocks cleaning up the wrapping jungle, so use the proper dix function instead. See: xorg/xserver#1754 Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <!20>
-
The field is never set, only used once to "restore" the ScreenRec->DestroyPixmap (hopefully by zero ?). Since, as an screen driver, we're at the lower end of the chain anyways, so it doesn't really matter. Thus drop the unused field. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <!20>
-
- Oct 04, 2024
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <!19>
-
- Sep 30, 2024
-
-
Alan Coopersmith authored
Part-of: <!19>
-
- Feb 21, 2024
-
-
Enrico Weigelt, metux IT consult . authored
Xserver includes have explicit pointer types for quite all kind of structs (at least those used by drivers), which are used all over the Xserver. Thus it's much cleaner to use those everywhere. This commit also clears the road to fix a horrible nightmare of hacks just needed to circumvent naming clashes between Xserver and Xlib (affecting all DDXes that are painting on another Xserver): we can simply rename Xserver's own "GC" type to "GCRec" (the usual naming convention here) and so no trouble with Xlib's "GC" type anymore. Once this has landed, we're free to do that without breaking this driver. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
- Oct 06, 2023
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Jan 24, 2023
-
-
Peter Hutterer authored
Signed-off-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
- Apr 12, 2022
-
-
Joachim Breuer authored
-
Joachim Breuer authored
... instead of pScrn->currentMode, the latter is not initialized in xorg-server-21.1.3
-
Joachim Breuer authored
track pScrn->modes along with qxl->x_modes
-
- Apr 06, 2022
-
-
libdrm 2.4.46 always installs qxl_drm.h
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Feb 19, 2022
-
-
Alan Coopersmith authored
Clears errors from FlawFinder in gitlab CI: Error: encoding error in ./src/uxa/uxa-unaccel.c 'utf-8' codec can't decode byte 0xa9 in position 19: invalid start byte Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Feb 06, 2022
-
-
Use xf86ReturnOptValBool() in get_bool_option() instead of options[option_index].value.bool to fix a compiler error with current Xorg xserver master branch. Also use xf86GetOptValInteger() in get_int_option() and xf86GetOptValString() in get_str_option() for consistency. The change causes a slight performance drop during option parsing because the passed-in index_value is no longer used as an index into the options array. Instead, it's used as a token now for the standard option getter functions which works since the index_value to the get_*_option() functions are identical to the value of options[n].token in the passed-in OptionInfoRec array. Also rename "int option_index" to "int token" for clarity in all three functions. Signed-off-by:
Zoltán Böszörményi <zboszor@gmail.com>
-
- Jan 23, 2022
-
-
Alan Coopersmith authored
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Feb 05, 2020
-
-
Adam Jackson authored
dpms.h is provided by libXext, but nothing in our configure.ac is verifying that we have libXext's headers. Fortunately we only need the definitions in dpmsconst.h (which dpms.h included for us), which is in xorgproto and thus implied by having an xserver DDK to build against. And we're even trying to include dpmsconst.h when we think we have it, meaning when HAVE_XEXTPROTO_71 is defined, but while many other drivers define that macro in their configure.ac, we for no particularly good reason do not. Oops. But since xextproto is about ten years old by now we can probably just safely include it unconditionally.
-
- Apr 06, 2019
-
-
The CtrlProc for our keyboard driver incorrectly mapped the device private to a SpiceKbd* intead of to a InputInfoPtr. That resulted in led state being written into the driver name for our driver structure, instead of into the led state. That, in turn, led to a cool bug where if you pressed caps lock, the two second sync timer in the spice server would cause it to attempt to correct the state by pressing caps lock to get the states to match. Since the states will never match, the caps lock effectively cycles on and off every two seconds. Signed-off-by:
Jeremy White <jwhite@codeweavers.com> Acked-by:
Victor Toso <victortoso@redhat.com>
-
- Dec 06, 2018
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Nov 18, 2018
-
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
- Nov 16, 2018
-
-
Otherwise we will can hit a segfault qxl_surface_kill() │717 void │718 qxl_surface_kill (qxl_surface_t *surface) │719 { │720 struct evacuated_surface_t *ev = surface->evacuated; │721 │722 if (ev) │723 { │724 /* server side surface is already destroyed (via reset), don't │725 * resend a destroy. Just mark surface as not to be recreated */ │726 ev->pixmap = NULL;│ │727 if (ev->image)│ │728 pixman_image_unref (ev->image); │729 if (ev->next) │730 ev->next->prev = ev->prev; │731 if (ev->prev) >│732 ev->prev->next = ev->next; │733 free(ev); │734 surface->evacuated = NULL; │735 return; │736 } Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1641793 Signed-off-by:
Victor Toso <victortoso@redhat.com>
-
- Nov 13, 2018
-
-
The xrandr output name used by the QXL driver is based on the drm connector type, but the names do not match the kernel names (see /drivers/gpu/drm/drm_connector.c) or the modesetting driver names (see hw/xfree86/drivers/modesetting/drmmode_display.c). Making these more consistent will require less driver-specific special-case code if a user wants to match an xrandr output to a drm connector. Note that this patch should not actually change any behavior, since the QXL driver only uses the 'Virtual' connector type, so this is done only for consistency. Signed-off-by:
Jonathon Jongsma <jjongsma@redhat.com> Acked-by:
Frediano Ziglio <fziglio@redhat.com>
-
The QXL driver names its outputs starting at 0 (e.g. Virtual-0, Virtual-1, etc). This code was presumably copy/pasted from a different driver, and is not necessary for the QXL driver. Other drivers simply use the kernel connector_type_id which starts at 1. For example, the modesetting driver changed from 0-based names to 1-based names for the same reason in xserver commit 139e36dd. This will help to make it easier to identify which xrandr outputs belong to which drm connector without requiring as many driver-specific special-cases. This change might effect custom xorg configurations that references a specific output name. But the same change was made in modesetting driver despite that possibility. Signed-off-by:
Jonathon Jongsma <jjongsma@redhat.com> Acked-by:
Frediano Ziglio <fziglio@redhat.com>
-
- Jun 19, 2017
-
-
This prevents crashes when multiple QXL devices are configured in a VM. https://bugzilla.redhat.com/show_bug.cgi?id=1428340
-
- Jun 13, 2017
-
-
Adam Jackson authored
The client could have said anything here, and if what they said doesn't actually name an atom NameForAtom() will return NULL, and strcmp() will be unhappy about that. [copied from xserver d4995a3936ae283b9080fdaa0905daa669ebacfc] Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- Apr 07, 2017
-
-
Signed-off-by:
Frediano Ziglio <fziglio@redhat.com> Acked-by:
Christophe Fergeau <cfergeau@redhat.com>
-
Signed-off-by:
Frediano Ziglio <fziglio@redhat.com> Acked-by:
Christophe Fergeau <cfergeau@redhat.com>
-
- Apr 06, 2017
-
-
François Gouget authored
Signed-off-by:
Francois Gouget <fgouget@codeweavers.com> Acked-by:
Jonathon Jongsma <jjongsma@redhat.com>
-
François Gouget authored
Signed-off-by:
Francois Gouget <fgouget@codeweavers.com> Acked-by:
Jonathon Jongsma <jjongsma@redhat.com>
-
- Feb 08, 2017
-
-
Christophe Fergeau authored
With python3, without universal_newlines=True, Popen().stdout.read() will return a byte array, while find(str) expects to operate on a string. I've checked that this still works with python2 as well.
-
Christophe Fergeau authored
-
Christophe Fergeau authored
This allows Xspice to run when using python3 instead of python2
-
- Dec 19, 2016
-
-
Christophe Fergeau authored
This reverts commit bfb72407. This was pushed by mistake.
-
Christophe Fergeau authored
With the Xorg 1.19 codepaths, the 'event_mask' field of SpiceWatch is only useful for sanity checking the event we get from Xorg. This commit assumes Xorg is sane, and removes this extra field.
-
Christophe Fergeau authored
spiceqxl_*.c files are Xspice-only code. They contain a few uses of malloc/strdup, and none of these are checked for failure. It's better to replace these with xfnalloc/xnfstrdup which are provided by the X server and cannot fail (aborts on failure). Signed-off-by:
Christophe Fergeau <cfergeau@redhat.com> Reviewed-by:
Hans de Goede <hdegoede@redhat.com>
-
Christophe Fergeau authored
In newer X.org versions, it's no longer supported to modify the set of FDs passed to a BlockHandler method to get notified when the FD has data to be read. This was limited anyway as we could only get read events this way, and had to do our own polling to get notified about socket writeability. Starting from xserver 1.19, the supported way of doing this is to use the SetNotifyFd/RemoveNotifyFd API, which is actually a much better way as it matches very well the 'watch' API spice-server expects Xspice to implement. This commit switches to that new API, which removes the need for RegisterBlockAndWakeupHandlers(). Signed-off-by:
Christophe Fergeau <cfergeau@redhat.com> Reviewed-by:
Hans de Goede <hdegoede@redhat.com> Acked-by:
Uri Lublin <uril@redhat.com>
- Dec 12, 2016
-
-
Christophe Fergeau authored
-
Group the options more logically and improve their descriptions. Add the missing help strings for Xspice --help and standardize the messages to start with a lowercase and not end with a period. In the Xorg configuration, always show the default in the commented-out sample. Signed-off-by:
Francois Gouget <fgouget@codeweavers.com> Acked-by:
Christophe Fergeau <cfergeau@redhat.com>
-