1. 22 Sep, 2020 3 commits
  2. 21 Sep, 2020 1 commit
  3. 15 Sep, 2020 3 commits
  4. 08 Sep, 2020 3 commits
    • Uday Kiran Pichika's avatar
      modesetting: Allow users to opt-in VRR support · 97f858d3
      Uday Kiran Pichika authored
      Fetch VariableRefresh option value from X conf file for
      modesetting backend DDX driver. This option defaults to false,
      and must be set to "true" in conf file for variable refresh
      support in the DDX driver.
      Signed-off-by: default avatarUday Kiran Pichika <pichika.uday.kiran@intel.com>
      97f858d3
    • Uday Kiran Pichika's avatar
      modesetting: Detect changes to the _VARIABLE_REFRESH window properties · ede2c32c
      Uday Kiran Pichika authored
      Window wrappers gets the notification when the window
      properties changes. These wrappers are mainly used to
      keep track of per-window _VARIABLE_REFRESH property values.
      
      These changes have been ported from AMDGPU
      Signed-off-by: default avatarUday Kiran Pichika <pichika.uday.kiran@intel.com>
      ede2c32c
    • Uday Kiran Pichika's avatar
      modesetting: Lay the foundation for enabling VRR · 9823ea4e
      Uday Kiran Pichika authored
      These changes have been ported from AMD GPU DDX driver.
      
      This patch adds support for setting the CRTC variable refresh property
      for suitable windows flipping via the Present extension.
      
      In order for a window to be suitable for variable refresh it must have
      the _VARIABLE_REFRESH property set by the MESA and inform Modesetting
      DDX driver with window property updates.
      
      Then the window must pass the checks required to be suitable for
      Present extension flips - it must cover the entire X screen and no
      other window may already be flipping. And also DRM connector should
      be VRR capable.
      
      With these conditions met every CRTC for the X screen will have their
      variable refresh property set to true.
      
      Kernel Changes to support this feature in I915 driver is under development.
      
      Tested with DOTA2, Xonotic and custom GLX apps.
      Signed-off-by: default avatarUday Kiran Pichika <pichika.uday.kiran@intel.com>
      9823ea4e
  5. 07 Sep, 2020 4 commits
  6. 04 Sep, 2020 1 commit
  7. 01 Sep, 2020 4 commits
    • Roman Gilg's avatar
      xwayland: Replace need_rotate boolean with simple check on xdg-output · 727df0a7
      Roman Gilg authored
      The need_rotate variable is only used once anymore and had semantics which lead
      to errors in the past. In particular when negated we are dealing with a double
      negation.
      
      The variable gets replaced with a simple check on the xdg-output directly.
      Signed-off-by: Roman Gilg's avatarRoman Gilg <subdiff@gmail.com>
      727df0a7
    • Roman Gilg's avatar
      Revert "xserver: Fix a typo" · da791ed9
      Roman Gilg authored
      This reverts commit 427f8bc0.
      
      When receiving an output update for the mode size we need to rotate the stored
      width and height values if and only if we have an xdg-output for this output
      since in this case the stored values describe the output's size in logical
      space, i.e. rotated.
      
      The here reverted commit made a code change with which we would not rotate though
      when an xdg-output was available since in this case the need_rotate variable was
      set to False what caused in the check afterwards the first branch to execute.
      da791ed9
    • Roman Gilg's avatar
      xwayland: Switch width and height argument order · 92f4a9ad
      Roman Gilg authored
      That is just a small style-change to the output_get_new_size function. The
      function before did take first the height and then the width argument, what
      is unusual since resolutions are normally named the other way around, for
      example 1920x1080. Also compare the update_screen_size function.
      
      Therefore change the order of arguments for output_get_new_size.
      Signed-off-by: Roman Gilg's avatarRoman Gilg <subdiff@gmail.com>
      92f4a9ad
    • Roman Gilg's avatar
      xwayland: simplify output_get_new_size function · 1805383d
      Roman Gilg authored
      We can just read out the xdg_output field of the provided xwl_output to check
      if a rotation is necessary or not.
      
      This makes the function easier to understand. Additionally some documentation
      is added.
      Signed-off-by: Roman Gilg's avatarRoman Gilg <subdiff@gmail.com>
      1805383d
  8. 31 Aug, 2020 1 commit
  9. 25 Aug, 2020 8 commits
  10. 24 Aug, 2020 1 commit
  11. 18 Aug, 2020 1 commit
  12. 04 Aug, 2020 1 commit
  13. 31 Jul, 2020 2 commits
  14. 30 Jul, 2020 1 commit
  15. 29 Jul, 2020 2 commits
  16. 28 Jul, 2020 1 commit
    • Huacai Chen's avatar
      linux: Fix platform device probe for DT-based PCI · 9fbd3e43
      Huacai Chen authored
      On a DT-base PCI platform, the sysfs path of vga device is like this:
      /sys/devices/platform/bus@10000000/1a000000.pci/pci0000:00/0000:00:11.0/0000:04:00.0.
      
      Then the ID_PATH from udev is platform-1a000000.pci-pci-0000:04:00.0 and
      the BusID will be pci-0000:04:00.0, which causes Xorg start fail. This
      is because config_udev_odev_setup_attribs() use strstr() to search the
      first "pci-" in ID_PATH. To fix this, we implement a strrstr() function
      and use it to search the last "pci-" in ID_PATH, which can get a correct
      BusID.
      Signed-off-by: default avatarHuacai Chen <chenhc@lemote.com>
      9fbd3e43
  17. 24 Jul, 2020 1 commit
    • Roman Gilg's avatar
      present: Check valid region in window mode flips · 591916ea
      Roman Gilg authored
      For Pixmap flips to have well defined outcomes the window must be contained by
      the valid region if such region was specified.
      
      The valid region is inserted as an argument to the check in window mode.
      Setting this argument is missing in screen mode as well but we ignore it for now
      and only add it to window mode.
      
      It seems there are none or only very few clients actually making use of valid
      regions at the moment. For simplicity we therefore just check if a valid region
      was set by the client and in this case do never flip, independently of the
      window being contained by the region or not.
      Signed-off-by: Roman Gilg's avatarRoman Gilg <subdiff@gmail.com>
      591916ea
  18. 22 Jul, 2020 2 commits