Commits on Source (17)
-
switch_to() is only used from #ifdef HAS_USL_VTS code, place it inside ifdefs to to avoid unused static warning and compile error on systems without VT_ACTIVATE and VT_WAITACTIVE defines.
-
Alan Coopersmith authored
Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by:
Martin Roukala <martin.roukala@mupuf.org>
-
Makes the 4-byte cases match those for 1- & 2-byte handling, moving the break from being unconditionally hit the first time through the to loop to after the loop is done. Fixes Solaris Studio compiler warnings: "prim_ops.c", line 2626: warning: end-of-loop code not reached "prim_ops.c", line 2692: warning: end-of-loop code not reached Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Both functions has a check at the beginning to return when h > 32767. Fixes LGTM 2 warnings "Comparison is always false because h <= 32767." Signed-off-by:
Konstantin Kharlamov <Hi-Angel@yandex.ru>
-
Correctness is ensured be checking md5sum result before and after the commit (it's the same). Fixes LGTM warning "Comparison is always false because numTimings <= 0." Signed-off-by:
Konstantin Kharlamov <Hi-Angel@yandex.ru>
-
Correctness is ensured be checking md5sum result before and after the commit (it's the same). Fixes LGTM warning: "Comparison is always true because firstValuator <= 1." Signed-off-by:
Konstantin Kharlamov <Hi-Angel@yandex.ru>
-
As can be seen in diff, nOut is always 0 here. The code was likely copy-pasted from comparisons further below. Fixes LGTM warning "Comparison is always false because nOut <= 0." Signed-off-by:
Konstantin Kharlamov <Hi-Angel@yandex.ru>
-
Fixes "Pointless comparison of unsigned value to zero." Signed-off-by:
Konstantin Kharlamov <Hi-Angel@yandex.ru>
-
Fixes LGTM warning "This parameter of type drmModeModeInfo is 68 bytes - consider passing a const pointer/reference instead." Signed-off-by:
Konstantin Kharlamov <Hi-Angel@yandex.ru>
-
Fixes LGTM warning "Testing for None should use the 'is' operator." Signed-off-by:
Konstantin Kharlamov <Hi-Angel@yandex.ru>
-
Fixes LGTM warning "The value assigned to local variable 'children' is never used." Signed-off-by:
Konstantin Kharlamov <Hi-Angel@yandex.ru>
-
Fixes LGTM warnings: * Import of 'cProfile' is not used. * Import of 'pdb' is not used. * Import of 'string' is not used. * Import of 'time' is not used. Signed-off-by:
Konstantin Kharlamov <Hi-Angel@yandex.ru>
-
Alan Coopersmith authored
Finishes the work started in commit cd0d4c1b to remove checks for the variable that never varied from 0 after the code to change it was removed by commit 511c60bc in 2006 (xorg-server-1.2.0). Signed-off-by:
Alan Coopersmith <alan.coopersmith@oracle.com>
-
Weng Xuetian authored
drm_lease_device_handle_released uses the wrong pointer type in the callback. This will cause crash when compositor removes drm lease device object. Fixes: 089e7f98 - Xwayland: implement drm-lease-v1 Reviewed-by:
Olivier Fourdan <ofourdan@redhat.com> Signed-off-by:
Weng Xuetian <wengxt@gmail.com>
-
The function rrGetPixmapSharingSyncProp() will check for the PRIME sync property "PRIME Synchronization" on each output and return false if any of the output has this property set to false. To do so, it will call RRGetOutputProperty() twice for each output, once with pending true and once with pending false to cover both possibilities. However, reading the implementation of RRGetOutputProperty(), it appears that if the property is not pending, the code will return the current value even if invoked with pending true. So the second call to RRGetOutputProperty() with pending false seems superfluous. Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com> Fixes: df8e8693 - randr: Add ability to turn PRIME sync off Reviewed-by:
Alex Goins <agoins@nvidia.com> Tested-by:
Alex Goins <agoins@nvidia.com>
-
Olivier Fourdan authored
When RANDR is emulated as with Xwayland, the actual output configuration does not change as RANDR is emulated using viewports. As a result, changes to the CRTC may be skipped, resulting in the configuration being (wrongly) assumed to be unchanged. Add a new output property "RANDR Emulation" that the DDX can set to force RRCrtcSet() to reconfigure the CRTC regardless of the change. Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com> Reviewed-by:
Hans de Goede <hdegoede@redhat.com>
-
Olivier Fourdan authored
Xwayland does not change the actual XRANDR setup for real, it just emulates the resolution changes using viewports in Wayland. With a single output, if an X11 applications tries to change the CRTC back to the native mode, RRCrtcSet() will simply ignore the request as no actual change is induced by this. Set the property "RANDR Emulation" on all Xwayland outputs to make sure the optimizations in RRCrtcSet() get skipped and Xwayland can receive and act upon the client request. Also make sure we do not allow that property to be changed by X11 clients. v2: Prevent X11 clients from changing the property value (Pekka Paalanen <pekka.paalanen@collabora.com>) Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com> Reviewed-by:
Hans de Goede <hdegoede@redhat.com> Closes: #1305
Showing
- Xext/xtest.c 1 addition, 1 deletionXext/xtest.c
- config/fdi2iclass.py 1 addition, 4 deletionsconfig/fdi2iclass.py
- dix/enterleave.c 4 additions, 4 deletionsdix/enterleave.c
- exa/exa_driver.c 1 addition, 1 deletionexa/exa_driver.c
- exa/exa_mixed.c 1 addition, 3 deletionsexa/exa_mixed.c
- glx/vndservermapping.c 0 additions, 1 deletionglx/vndservermapping.c
- hw/kdrive/src/kdrive.c 1 addition, 1 deletionhw/kdrive/src/kdrive.c
- hw/xfree86/common/xf86Mode.c 6 additions, 27 deletionshw/xfree86/common/xf86Mode.c
- hw/xfree86/drivers/modesetting/drmmode_display.c 5 additions, 5 deletionshw/xfree86/drivers/modesetting/drmmode_display.c
- hw/xfree86/os-support/solaris/sun_init.c 2 additions, 0 deletionshw/xfree86/os-support/solaris/sun_init.c
- hw/xfree86/ramdac/CURSOR.NOTES 1 addition, 1 deletionhw/xfree86/ramdac/CURSOR.NOTES
- hw/xfree86/x86emu/ops.c 1 addition, 1 deletionhw/xfree86/x86emu/ops.c
- hw/xfree86/x86emu/prim_ops.c 2 additions, 2 deletionshw/xfree86/x86emu/prim_ops.c
- hw/xnest/man/Xnest.man 1 addition, 1 deletionhw/xnest/man/Xnest.man
- hw/xquartz/man/Xquartz.man 2 additions, 2 deletionshw/xquartz/man/Xquartz.man
- hw/xwayland/xwayland-drm-lease.c 2 additions, 1 deletionhw/xwayland/xwayland-drm-lease.c
- hw/xwayland/xwayland-output.c 26 additions, 0 deletionshw/xwayland/xwayland-output.c
- hw/xwin/glx/gen_gl_wrappers.py 1 addition, 1 deletionhw/xwin/glx/gen_gl_wrappers.py
- hw/xwin/glx/indirect.c 1 addition, 1 deletionhw/xwin/glx/indirect.c
- randr/rrcrtc.c 24 additions, 11 deletionsrandr/rrcrtc.c