1. 09 Mar, 2016 1 commit
  2. 08 Mar, 2016 1 commit
  3. 02 Mar, 2016 1 commit
  4. 01 Mar, 2016 1 commit
    • Laércio de Sousa's avatar
      config/udev: distinguish between real keyboards and other key devices · daa6d2d5
      Laércio de Sousa authored
      This patch introduces a new flag ATTR_KEY for hotplugged input devices,
      so we can better distinguish between real keyboards (i.e. devices with
      udev property ID_INPUT_KEYBOARD="1") and other key input devices like
      lid switches, power buttons, etc.
      
      All supported hotplug backends (udev, hal, and wscons) will set both
      flags ATTR_KEY and ATTR_KEYBOARD for real keyboards, but udev backend
      will set ATTR_KEY, but not ATTR_KEYBOARD, for non-keyboard key input
      devices (hal and wscons will set both flags in any case). With this
      distinction, kdrive input hotplugging mechanism will be allowed to only
      grab real keyboards, as other key input devices are currently not
      supported.
      
      In order to don't break current behaviour, this patch will replace all
      ATTR_KEYBOARD occurrences with ATTR_KEY in hw/xfree86/common/xf86Xinput.c.
      
      [ajax: Just add ATTR_KEY, don't re-number the other attributes]
      Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      Signed-off-by: Laércio de Sousa's avatarLaércio de Sousa <laerciosousa@sme-mogidascruzes.sp.gov.br>
      daa6d2d5
  5. 29 Feb, 2016 12 commits
  6. 22 Feb, 2016 2 commits
    • Marc-André Lureau's avatar
      dri2: add virtio-gpu pci ids · 5627708e
      Marc-André Lureau authored
      Add virtio-gpu legacy + 1.0 pci ids, allowing them to use
      modesetting + glamor with dri2.
      Signed-off-by: Marc-André Lureau's avatarMarc-André Lureau <marcandre.lureau@gmail.com>
      Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
      5627708e
    • Daniel Stone's avatar
      dix: Add hybrid full-size/empty-clip mode to SetRootClip · e957a2e5
      Daniel Stone authored
      216bdbc7 removed the SetRootClip call in the XWayland output-hotplug
      handler when running rootless (e.g. as a part of Weston/Mutter), since
      the root window has no storage, so generating exposures will result in
      writes to invalid memory.
      
      Unfortunately, preventing the segfault also breaks sprite confinement.
      SetRootClip updates winSize and borderSize for the root window, which
      when combined with RRScreenSizeChanged calling ScreenRestructured,
      generates a new sprite-confinment area to update it to the whole screen.
      
      Removing this call results in the window geometry being reported
      correctly, but winSize/borderSize never changing from their values at
      startup, i.e. out of sync with the root window geometry / screen
      information in the connection info / XRandR.
      
      This patch introduces a hybrid mode, where we update winSize and
      borderSize for the root window, enabling sprite confinement to work
      correctly, but keep the clip emptied so exposures are never generated.
      Signed-off-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
      Tested-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
      Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      e957a2e5
  7. 11 Feb, 2016 1 commit
  8. 09 Feb, 2016 1 commit
  9. 08 Feb, 2016 1 commit
  10. 28 Jan, 2016 2 commits
  11. 27 Jan, 2016 1 commit
  12. 06 Jan, 2016 1 commit
  13. 05 Jan, 2016 1 commit
  14. 20 Dec, 2015 1 commit
  15. 18 Dec, 2015 2 commits
    • Peter Hutterer's avatar
      xfree86: add NoMatchFoo directives for InputClass sections · fc4fbe82
      Peter Hutterer authored
      InputClass sections use various MatchFoo directives to decide which device to
      apply to. This usually works fine for specific snippets but has drawbacks for
      snippets that apply more generally to a multitude of devices.
      
      This patch adds a NoMatchFoo directive to negate a match, thus allowing
      snippets that only apply if a given condition is not set. Specifically, this
      allows for more flexible fallback driver matching, it is now possible to use a
      snippet that says "assign driver foo, but only if driver bar wasn't already
      assigned to it". For example:
      
      Section "InputClass"
         Identifier "libinput for tablets"
         MatchIsTablet "true"
         NoMatchDriver "wacom"
         Driver "libinput"
      EndSection
      
      The above only assigns libinput to tablet devices if wacom isn't already
      assigned to this device, making it possible to select a specific driver by
      installing/uninstalling it.
      Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      Reviewed-by: Benjamin Tissoires's avatarBenjamin Tissoires <benjamin.tissoires@gmail.com>
      fc4fbe82
    • Peter Hutterer's avatar
      xfree86: whitespace fix · eb671b80
      Peter Hutterer authored
      Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      eb671b80
  16. 08 Dec, 2015 1 commit
  17. 07 Dec, 2015 4 commits
    • Adam Jackson's avatar
      x86emu: Squash a warning · 2a52c06e
      Adam Jackson authored
      Apologies, should have caught this one when applying the previous x86emu
      patch.
      Signed-off-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      2a52c06e
    • Julian Pidancet's avatar
      x86emu: Correctly handle 0x66 prefix for some instructions · 59b61822
      Julian Pidancet authored
      (Sorry for double posting)
      
      I repost this patch because I havn't got any replies from maintainers
      since I posted the initial patch back in March.
      
      Some instructions are not emulated correctly by x86emu when they
      are prefixed by the 0x66 opcode.
      I've identified problems in the emulation of these intructions: ret,
      enter, leave, iret and some forms of call.
      
      Most of the time, the problem is that these instructions should push or
      pop 32-bit values to/from the stack, instead of 16bit, when they are
      prefixed by the 0x66 special opcode.
      
      The SeaBIOS project aims to produce a complete legacy BIOS
      implementation as well as a VGA option ROM, entirely written in C and
      using the GCC compiler.
      
      In 16bit code produced by the GCC compiler, the 0x66 prefix is used
      almost everywhere. This patch is necessary to allow the SeaBIOS VGA
      option ROM to function with Xorg when using the vesa driver.
      
      SeaBIOS currently use postprocessing on the ROM assembly output to
      replace the affected instruction with alternative unaffected instructions.
      This is obviously not very elegant, and this fix in x86emu would be
      more appropriate.
      
      v2: - Decrement BP instead of EBP in accordance with the Intel Manual
          - Assign EIP instead of IP when poping the return address from the
          stack in 32-bit operand size mode in ret_far_IMM, ret_far, and iret
          - When poping EFLAGS from the stack in iret in 32-bit operand size
          mode, apply some mask to preserve Read-only flags.
      
      v3: - Rebase
      Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      Signed-off-by: default avatarJulian Pidancet <julian.pidancet@gmail.com>
      59b61822
    • Dave Airlie's avatar
      modesetting: create entities for pci and old probe. (v2) · 548a3d5f
      Dave Airlie authored
      This moves the code from the platform case into
      a common function, and calls that from the
      other two.
      
      v2: Emil convinced me we don't need to lookup pEnt
      here, so let's not bother.
      Reported-by: default avatarMark Kettenis <mark.kettenis@xs4all.nl>
      Reviewed-by: Mark Kettenis's avatarMark Kettenis <kettenis@openbsd.org>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      548a3d5f
    • Dave Airlie's avatar
      modesetting: drop platform_dev pointer. · 771016f0
      Dave Airlie authored
      This isn't used anywhere, so no point storing it until we need it.
      Reviewed-by: Mark Kettenis's avatarMark Kettenis <kettenis@openbsd.org>
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      771016f0
  18. 03 Dec, 2015 1 commit
  19. 02 Dec, 2015 1 commit
  20. 01 Dec, 2015 3 commits
  21. 30 Nov, 2015 1 commit