1. 02 Oct, 2018 3 commits
    • Michel Dänzer's avatar
      Add GitLab CI configuration · 05a1ba9a
      Michel Dänzer authored and Michel Dänzer's avatar Michel Dänzer committed
      Builds the driver against all supported versions of xserver, with both
      gcc and clang for xserver >= 1.18 (older versions cause warnings with
      clang). Compiler warnings are treated as errors.
      
      The xserver 1.15 build uses standalone glamor, the xserver 1.13 & 1.14
      builds use --disable-glamor.
      
      With the latest xserver version, make install and make distcheck are
      tested as well.
      05a1ba9a
    • Michel Dänzer's avatar
      Fix --disable-glamor build · babbd380
      Michel Dänzer authored and Michel Dänzer's avatar Michel Dänzer committed
      We were still relying on the glamor.h header being picked up implicitly.
      babbd380
    • Michel Dänzer's avatar
      Cast return value of amdgpu_get_marketing_name to char* · b6ee7f92
      Michel Dänzer authored and Michel Dänzer's avatar Michel Dänzer committed
      Avoids compiler warning with xserver < 1.16:
      
      ../../src/amdgpu_kms.c: In function ‘AMDGPUPreInitChipType_KMS’:
      ../../src/amdgpu_kms.c:1203:17: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
        pScrn->chipset = amdgpu_get_marketing_name(pAMDGPUEnt->pDev);
                       ^
      b6ee7f92
  2. 26 Sep, 2018 2 commits
  3. 20 Sep, 2018 2 commits
  4. 14 Sep, 2018 1 commit
  5. 13 Sep, 2018 1 commit
  6. 05 Sep, 2018 2 commits
  7. 31 Aug, 2018 2 commits
  8. 30 Aug, 2018 1 commit
  9. 29 Aug, 2018 1 commit
  10. 24 Aug, 2018 2 commits
  11. 16 Aug, 2018 7 commits
  12. 02 Aug, 2018 1 commit
  13. 27 Jul, 2018 1 commit
    • Michel Dänzer's avatar
      Store FB for each CRTC in drmmode_flipdata_rec · 9b6782c8
      Michel Dänzer authored and Michel Dänzer's avatar Michel Dänzer committed
      
      
      We were only storing the FB provided by the client, but on CRTCs with
      TearFree enabled, we use a separate FB. This could cause
      drmmode_flip_handler to fail to clear drmmode_crtc->flip_pending, which
      could result in a hang when waiting for the pending flip to complete. We
      were trying to avoid that by always clearing drmmode_crtc->flip_pending
      when TearFree is enabled, but that wasn't reliable, because
      drmmode_crtc->tear_free can already be FALSE at this point when
      disabling TearFree.
      
      Now that we're keeping track of each CRTC's flip FB separately,
      drmmode_flip_handler can reliably clear flip_pending, and we no longer
      need the TearFree hack.
      
      Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      9b6782c8
  14. 25 Jul, 2018 1 commit
  15. 23 Jul, 2018 2 commits
    • Michel Dänzer's avatar
      Use strcpy for RandR output property names · f3b2ed37
      Michel Dänzer authored and Michel Dänzer's avatar Michel Dänzer committed
      
      
      Instead of strncpy with the string length. Avoids new warnings with GCC
      8:
      
      ../../src/drmmode_display.c: In function ‘drmmode_output_create_resources’:
      ../../src/drmmode_display.c:2240:2: warning: ‘strncpy’ output truncated before terminating nul copying 8 bytes from a string of the same length [-Wstringop-truncation]
        strncpy(tearfree_prop->name, "TearFree", 8);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../../src/drmmode_display.c:2244:2: warning: ‘strncpy’ output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation]
        strncpy(tearfree_prop->enums[0].name, "off", 3);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../../src/drmmode_display.c:2245:2: warning: ‘strncpy’ output truncated before terminating nul copying 2 bytes from a string of the same length [-Wstringop-truncation]
        strncpy(tearfree_prop->enums[1].name, "on", 2);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../../src/drmmode_display.c:2247:2: warning: ‘strncpy’ output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation]
        strncpy(tearfree_prop->enums[2].name, "auto", 4);
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
      Reviewed-by: Slava Abramov's avatarSlava Abramov <slava.abramov@amd.com>
      f3b2ed37
    • Michel Dänzer's avatar
      Remove drmmode_terminate_leases · 5f06d6b8
      Michel Dänzer authored and Michel Dänzer's avatar Michel Dänzer committed
      The RandR screen private is already freed when our CloseScreen runs, so
      this can't do anything useful. This cleanup has to be done by the X
      server itself.
      5f06d6b8
  16. 20 Jul, 2018 3 commits
  17. 18 Jul, 2018 1 commit
  18. 13 Jul, 2018 1 commit
  19. 11 Jul, 2018 2 commits
  20. 10 Jul, 2018 3 commits
  21. 06 Jul, 2018 1 commit