1. 26 Oct, 2015 1 commit
  2. 18 Aug, 2015 2 commits
  3. 27 Jul, 2015 1 commit
  4. 24 Jul, 2015 3 commits
    • Marico Xu's avatar
      Dynamically detect drmmode driver · 29ed4f28
      Marico Xu authored
      By querying the DRM driver name from the kernel, we can dynamically select the right backend.
      No need to enforce a specific backend at compile time.
      
      Change-Id: I6c27103233e2cbb4283a22089720b5ffd1a10bb6
      29ed4f28
    • Marico Xu's avatar
      Fix build failure with xserver version 1.17 · 25f588e2
      Marico Xu authored
      Due to the missing declarations of fstat and struct stat,
      Compiling against xservers in version 1.17 starts failing .
      Add the headers listed by man fstat to drmmode_display.c to fix this.
      
      Change-Id: I7c971b7ce7b8afb40f22d5807ec7191ed9fb4569
      25f588e2
    • Marico Xu's avatar
      Add check for xextproto in configure.ac · 20c4a887
      Marico Xu authored
      drmmode_display.c already tries to check if the xext proto is 7.1 or above to include the correct header,
      but until now the used constant was not checked/defined during configure at all.
      Add the configure part is based on what xf86-video-modesetting does.
      
      Change-Id: I1a37cb258f9f137731b083aeb2f3e572dc8977a2
      20c4a887
  5. 01 Jun, 2015 1 commit
    • David Garbett's avatar
      DRI2: Check bo dimensions before reusing · fe19c29e
      David Garbett authored
      With DRI2INFOREC_VERSION >= 6 we use ARMSOCDRI2ReuseBufferNotify to
      determine when to reuse a back buffer, instead of bumping the serial
      number in ARMSOCDRI2CreateBuffer.
      
      However ARMSOCDRI2ReuseBufferNotify was only checking that both the old
      buffer and the new buffer were both flippable or not-flippable. This is
      not correct - just because the old buffer was flipped it doesn't mean it
      can be now - the size may have changed. We therefore also need to verify
      the buffer size matches the drawable.
      
      Change-Id: Ie86537d3d21a8cfe58017ef4cf02f3292174cb50
      fe19c29e
  6. 11 May, 2015 1 commit
    • Marico Xu's avatar
      Fix the 64 bit build error · 8ca85138
      Marico Xu authored
      "%p" should be used to indicate the point value instead of "%x"
      
      Change-Id: Id7cd867193805381412835f9b6ac48564fa6b1a9
      8ca85138
  7. 31 Mar, 2015 1 commit
    • Marico Xu's avatar
      Fix the wakeup handler lost and modify the logic of reporting damage · 03cfb069
      Marico Xu authored
      1. Init and fini wakeup handler during screen init/fini instead of preinit
         The frequent screen init/close will happen when the user do the test with
       only "X", that will trigger the wakeup handler does not take effect, 
       then some VBLANK events will not be obtained.
      2. Update damage region only in the "exchange buffer" case
         there is no need to report damage in other flip/blit case in swapbuffer,
      and we only need to report it when the app wants to notify the composite manager. 
         Otherwise, some pontential issues will happen in some versions of X
      
      Change-Id: Ic0c73bc5f0bc6c24d5a31cf48e814af2d994c7f5
      03cfb069
  8. 02 Feb, 2015 1 commit
  9. 16 Jan, 2015 3 commits
    • Sunny's avatar
      make use of DRI2 buffer flags · 6ad6ca8e
      Sunny authored
      change the DRI2 buffer flags to have the following meaning:
      Bit 1: for it is a frame buffer or not
      Bit 2: Reserved
      Bit 3: for it is re-used or re-created
      
      Change-Id: Ideaf3866b2a3a08b714fc0ee39ec1e68aaa28fdb
      6ad6ca8e
    • Sunny's avatar
      fix a segfault when switching VT · ddd97ea4
      Sunny authored
      add a check before calling AttendClient/IgnoreClient
      
      Change-Id: Iea22d8c31d08a886790e0f7717e9b24375038b52
      ddd97ea4
    • Sunny's avatar
      add DRI2WaitMSC support · 08e6cc77
      Sunny authored
      set "vblank_query_supported" dynamically.
      add vblank handler function to handle vblank interrupt, and then
      calls DRI2WaitMSCComplete to wake up client process
      
      Change-Id: Iecb262287cdae33e29a518d1fcd3ce7089aa60d1
      08e6cc77
  10. 06 Jan, 2015 1 commit
    • Rob Clark's avatar
      fix build error in tinderbox · 459fcb44
      Rob Clark authored
      make[2]: Entering directory '/old/home/robclark/xorg/driver/xf86-video-armsoc/src'
        CC       armsoc_dumb.lo
      In file included from /home/robclark/xorg-build/include/xorg/misc.h:115:0,
                       from /home/robclark/xorg-build/include/xorg/xf86str.h:37,
                       from /home/robclark/xorg-build/include/xorg/xf86.h:44,
                       from armsoc_dumb.c:30:
      /home/robclark/xorg-build/include/xorg/os.h:541:2: error: expected identifier or '(' before '__extension__'
       strndup(const char *str, size_t n);
        ^
      Makefile:496: recipe for target 'armsoc_dumb.lo' failed
      Signed-off-by: Rob Clark's avatarRob Clark <robdclark@gmail.com>
      459fcb44
  11. 10 Dec, 2014 1 commit
  12. 09 Dec, 2014 1 commit
    • Sunny's avatar
      fix several issues: · 91da34e6
      Sunny authored
      1. fix performance issue with latest XServer
         The recent DRI2 has removed the serial number detection for re-creating
         DRI2 buffer, so if a window changes from unflippable to flippable or vice
         versa, the DRI2 will not call CreateBuffer to re-create the back buffer
         if we just increase the serial number, then the fb id is not created
         and swap buffers will always go copy path.
         if re-create fails, the next swap buffers will generate an error
      
      2. fix an EDID issue if the length is greater than 128
      
      3. fix restor the last good mode issue if a problem occurs
      
      Change-Id: I917c3857a88d45cae8357d1b1bcda34dd93597ab
      91da34e6
  13. 07 Nov, 2014 1 commit
    • Robin Wang's avatar
      Integrate umplock to armsoc ddx driver for MALI400 · c9dcb42f
      Robin Wang authored
      MALI400 EGL driver use umplock for CPU/GPU accessing synchronization.
      Port umplock related changes from xf86-video-mali to xf86-video-armsoc DDX driver.
      
      Change-Id: I0765e4a747153ff72cb7ebb44afe0136aacd5834
      c9dcb42f
  14. 05 Nov, 2014 1 commit
  15. 15 Sep, 2014 1 commit
    • Sunny's avatar
      Replace two asserts with warning message · 0594f7b6
      Sunny authored
      With some high frame rate benchmarks which disable swap interval, SwapBuffers
      may be called before swap complete event arrives.
      
      Change-Id: I4dbb027fa5027858e3134712d5d02f28688ac366
      0594f7b6
  16. 21 Jul, 2014 1 commit
    • Sunny's avatar
      Fix performance issue when enlightenment started. · 9702414f
      Sunny authored
      Change some logic in ARMSOCDRI2ScheduleSwap(). If src and dst has
      same size and they are both no-framebuffer with compositor enabled,
      we only need to exchange buffers between src and dst pixmap.
      
      Change-Id: Iba0b3e248589bc8d05f5b52cfb12865790d812a3
      9702414f
  17. 17 Jul, 2014 1 commit
    • Sunny's avatar
      XServer crash with multiple applications running at the same time · d5df209d
      Sunny authored
      armsoc ddx only allows two calls to ARMSOCDRI2ScheduleSwap
      before SwapComplete arrives, if you are running three applications at one time,
      each process should wait other two processes which is impossible.
      
      Change-Id: Ia630e23ac64878328c675be6773f97ec9d839911
      d5df209d
  18. 16 Jul, 2014 1 commit
    • Dave Barnish's avatar
      Removed bad assert · 0abde2d6
      Dave Barnish authored
      In ModifyPixmapHeader we were asserting that a scratch pixmap's bo
      does not have a dmabuf. We neglected to check whether the scratch
      pixmap has a bo. If it doesn't this assert caused a segfault.
      
      Change-Id: I9f2eee88f69e9d7c20a3506e618b3eadce716c2a
      0abde2d6
  19. 08 Jul, 2014 1 commit
  20. 26 Jun, 2014 1 commit
  21. 24 Jun, 2014 1 commit
  22. 16 Jun, 2014 1 commit
    • Dave Barnish's avatar
      Minor tidy ups. · 05d9a4df
      Dave Barnish authored
      ModifyPixmap asserts that priv->bo exists.
      Fixed whitespace in DestroyPixmap.
      Use unsigned int for swap_id et al. to avoid overflow issues.
      Additional checks on swap_chain usage.
      Removed incorrect comment.
      
      Change-Id: I284862e647d4542f56afb710497fe2403d9801a2
      05d9a4df
  23. 11 Jun, 2014 1 commit
    • Dave Barnish's avatar
      Fixed a memory corruption issue. · 4469268c
      Dave Barnish authored
      Commit 36c7ca02 "Fix malloc/calloc/free usage" introduced
      a wrongly sized allocation which could cause memory
      corruption.
      
      Change-Id: I5693e7cd952fbb811a09caf251dbeb8bd23b490a
      4469268c
  24. 16 May, 2014 1 commit
    • Eskil Sund's avatar
      Enabling n-buffering support when using page flip events. · 1d13da04
      Eskil Sund authored
      DRI2INFOREC_VERSION 6 introduces DRI2SwapLimit which enables us to schedule
      swaps and retrieve next buffer n-times as given by the swap-limit. This
      further enables us to do asynchronous swaps which enables asynchronous
      rendering to n-buffers.
      
      The swap limit is given by the xorg.conf option DRI2MaxBuffers. If
      DRI2MaxBuffers is not specified no swap limit will be set and behavior will
      default to synchronous swaps.
      
      Notably, this commit bumps up the required DRI2INFOREC_VERSION to 5 as required
      by drmAuth. DRI2INFOREC_VERSION 6, with DRI2SwapLimit, is optional.
      
      Change-Id: Ia39dcd91628172f884eac914938d8ddd4b41aa71
      1d13da04
  25. 06 May, 2014 1 commit
  26. 04 May, 2014 1 commit
    • Rob Clark's avatar
      build fixes · f16b5c84
      Rob Clark authored
      Fixes
      
        armsoc_driver.c: In function 'ARMSOCScreenInit':
        armsoc_driver.c:1067:8: error: assignment discards 'const' qualifier from pointer target type [-Werror]
      
      and
      
        drmmode_display.c: In function 'drmmode_set_mode_major':
        drmmode_display.c:357:4: error: passing argument 1 of 'free' discards 'const' qualifier from pointer target type [-Werror]
      Signed-off-by: Rob Clark's avatarRob Clark <robdclark@gmail.com>
      f16b5c84
  27. 15 Apr, 2014 1 commit
    • Ray Smith's avatar
      Clarify assumptions on window front buffer pixmaps · 3ec703cd
      Ray Smith authored
      We assume that a window's front buffer pixmap won't be reallocated
      from beneath us. This commit updates a comment to reflect this
      assumption.
      
      Change-Id: Ic1ddc508dee8b1696643dd418ddb466fbce9d8fb
      3ec703cd
  28. 07 Apr, 2014 1 commit
  29. 25 Mar, 2014 1 commit
  30. 14 Mar, 2014 1 commit
  31. 14 Feb, 2014 1 commit
  32. 12 Feb, 2014 1 commit
  33. 31 Jan, 2014 2 commits
    • Daniel Kurtz's avatar
      Fix malloc/calloc/free usage · 36c7ca02
      Daniel Kurtz authored
      . Use calloc when allocating objects.
      . Use malloc when allocating a buffer that we are about to completely fill.
      . In both cases, NULL check the result, unless using X built-in "kill server
      on alloc fail" versions (e.g., xnfcalloc())
      . The canonical way to call calloc is:
        ptr = calloc(nelem, sizeof *ptr); /* or sizeof(*ptr) */
        if (ptr) {
            /* Handle OOM */
        }
      
      . Don't NULL check before calling free().
      
      BUG=none
      TEST=compiles clean; sanity check ui on device
      
      (cherry picked from commit 79795728e366a56013aa4affa2d42128441a5eb9)
      From: https://chromium.googlesource.com/chromiumos/third_party/xf86-video-armsoc
      
      Change-Id: I18b6a6c7c173c0120ec6da948b1e55cbe96e1e1d
      36c7ca02
    • Daniel Kurtz's avatar
      Fix leak in OMAPProbe if xf86AllocateScreen() fails · 0dd0b088
      Daniel Kurtz authored
      Fixes the leak of devSections and fd.
      
      Note: The previous version of OMAPProbe returned FALSE if *any*
      xf86AllocateScreen() fails. This version returns TRUE if at least one
      instance is successfully claimed.  It should be ok to only allocate
      and claim some of the screens that were specified by xorg.conf "Device"
      sections.
      
      TODO: Opening fd with OMAPOpenDRM() and closing it with drmClose() is a
      mismatch.  Better would be to:
       * open with one of drmOpen*()
       * open with open() and close with close()
       * introduce a new OMAPCloseDRM()
      But, any of these would require a separate patch.
      
      BUG=none
      TEST=builds clean; sanity check ui
      
      (cherry picked from commit e4f165c9551f883f2dddec7165e557662786f526)
      From: https://chromium.googlesource.com/chromiumos/third_party/xf86-video-armsoc
      
      Change-Id: I2d41d79eb4e7573f146b585afc9ba7a86508a4b5
      0dd0b088
  34. 29 Jan, 2014 1 commit