1. 02 May, 2021 1 commit
  2. 24 Apr, 2021 3 commits
  3. 16 Apr, 2021 7 commits
  4. 13 Apr, 2021 1 commit
  5. 09 Apr, 2021 13 commits
  6. 08 Apr, 2021 4 commits
  7. 07 Apr, 2021 2 commits
  8. 06 Apr, 2021 1 commit
    • Pascal VITOUX's avatar
      xfree86: fix gtf support detection for EDID 1.4 · 34e2a64c
      Pascal VITOUX authored
      
      
      According to the "VESA Enhanced EDID Standard", all GTF compliant
      displays are continuous frequency.
      
      The GTF support flags in 'Display Range Limits Descriptor' cannot be
      used if the display is a non-continuous frequency multi-mode display.
      
      Closes #1105
      Signed-off-by: Pascal VITOUX's avatarPascal VITOUX <vitoux.pascal@gmail.com>
      Fixes: 6a79a737 ("xfree86: add drm modes on non-GTF panels")
      Reviewed-by: Aaron Ma aaron.ma@canonical.com
      34e2a64c
  9. 05 Apr, 2021 1 commit
    • Aaron Plattner's avatar
      modesetting: Defer crtc gamma size upgrade to drmmode_setup_colormap · b75d0cca
      Aaron Plattner authored
      Rather than trying to create a gamma ramp array of the appropriate size in
      drmmode_crtc_init when the GAMMA_LUT property should be used, just flag the crtc
      as wanting to use the GAMMA_LUT property and then replace the gamma ramp later,
      right before calling xf86HandleColormaps. This avoids a problem during initial
      startup where xf86RandR12CreateObjects12 hard-codes a gamma ramp size of 256,
      causing xf86RandR12CrtcSetGamma to read past the end of the DIX layer's RandR
      gamma ramp array:
      
        PreInit
          drmmode_pre_init
            drmmode_crtc_init
              crtc->gamma_size = 1024
      
        ScreenInit
          xf86CrtcScreenInit
            xf86RandR12Init
              xf86RandR12Init12
                xf86RandR12CreateObjects12
                  RRCrtcCreate
                    randr_crtc->gammaSize = 0
                xf86RandR12InitGamma(pScrn, 256)
                  RRCrtcGammaSetSize
                    randr_crtc->gammaSize = 256
                xf86RandR12InitGamma
                  xf86RandR12CrtcInitGamma
                    RRCrtcGammaSet
                      xf86RandR12CrtcSetGamma
                        // crtc->gamma_size is 1024 here, while randr_crtc->gammaRed
                        // is a 256-element array.
                        memcpy(crtc->gamma_red, randr_crtc->gammaRed, crtc->gamma_size * sizeof(crtc->gamma_red[0]));
          drmmode_setup_colormap
            xf86HandleColormaps
              xf86RandR12InitGamma
                RRCrtcGammaSetSize
                  randr_crtc->gammaSize = 1024
      
      Fixes: 245b9db0 - modesetting: Use GAMMA_LUT when available
      Closes: #1126
      
      Signed-off-by: Aaron Plattner's avatarAaron Plattner <aplattner@nvidia.com>
      Reviewed-by: Robert Morell's avatarRobert Morell <rmorell@nvidia.com>
      b75d0cca
  10. 04 Apr, 2021 1 commit
  11. 30 Mar, 2021 1 commit
  12. 26 Mar, 2021 5 commits