1. 18 Oct, 2019 1 commit
  2. 21 Aug, 2019 1 commit
  3. 02 May, 2019 1 commit
  4. 29 Apr, 2019 1 commit
  5. 16 Nov, 2018 1 commit
  6. 12 Nov, 2018 2 commits
  7. 28 Mar, 2018 1 commit
  8. 14 Sep, 2017 1 commit
  9. 01 Aug, 2017 1 commit
  10. 19 Jul, 2017 2 commits
  11. 18 Jul, 2017 1 commit
    • Daniel Stone's avatar
      gbm: Axe buffer import format conversion table · 6f8d8b17
      Daniel Stone authored
      Wayland buffers coming from wl_drm use the WL_DRM_FORMAT_* enums, which
      are identical to GBM_FORMAT_*. Similarly, FD imports do not need to
      convert between GBM and DRI FourCC, since they are (almost) completely
      compatible.
      
      This widens the formats accepted by gbm_bo_import() when importing
      wl_buffers; previously, only XRGB8888, ARGB8888, RGB565 and YUYV were
      supported.
      Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
      6f8d8b17
  12. 15 Jun, 2017 1 commit
  13. 29 May, 2017 3 commits
  14. 23 Mar, 2017 1 commit
    • Daniel Stone's avatar
      gbm: Use unsigned for BO offset getter · 378025ca
      Daniel Stone authored
      The actual offset returned is uint32_t, however int64_t was used as the
      return type from gbm_bo_get_offset to allow negative returns to signal
      errors to the caller.
      
      In case of an error getting the offset, the user will also be unable to
      get the handle/FD, and thus have nothing to offset into. This means that
      returning 0 as an error value is harmless, allowing us to change the
      return type to uint32_t in order to avoid signed/unsigned confusion in
      callers.
      Signed-off-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
      Cc: Ben Widawsky <ben@bwidawsk.net>
      Cc: Jason Ekstrand <jason@jlekstrand.net>
      378025ca
  15. 15 Mar, 2017 2 commits
    • Ben Widawsky's avatar
      gbm: Export a get modifiers · 8378c576
      Ben Widawsky authored
      This patch originally had i965 specific code and was named:
      commit 61cd3c52b868cf8cb90b06e53a382a921eb42754
      Author: Ben Widawsky <ben@bwidawsk.net>
      Date:   Thu Oct 20 18:21:24 2016 -0700
      
          gbm: Get modifiers from DRI
      
      To accomplish this, two new query tokens are added to the extension:
      __DRI_IMAGE_ATTRIB_MODIFIER_UPPER
      __DRI_IMAGE_ATTRIB_MODIFIER_LOWER
      
      The query extension only supported 32b queries, and modifiers are 64b,
      so we needed two of them.
      
      NOTE: The extension version is still set to 13, so none of this will
      actually be called.
      
      v2: Error handling of queryImage (Emil)
      Signed-off-by: Ben Widawsky's avatarBen Widawsky <ben@bwidawsk.net>
      Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <jason@jlekstrand.net>
      Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
      8378c576
    • Ben Widawsky's avatar
      gbm: Introduce modifiers into surface/bo creation · 63bd2ae7
      Ben Widawsky authored
      The idea behind modifiers like this is that the user of GBM will have
      some mechanism to query what properties the hardware supports for its BO
      or surface. This information is directly passed in (and stored) so that
      the DRI implementation can create an image with the appropriate
      attributes.
      
      A getter() will be added later so that the user GBM will be able to
      query what modifier should be used.
      
      Only in surface creation, the modifiers are stored until the BO is
      actually allocated. In regular buffer allocation, the correct modifier
      can (will be, in future patches be chosen at creation time.
      
      v2: Make sure to check if count is non-zero in addition to testing if
      calloc fails. (Daniel)
      
      v3: Remove "usage" and "flags" from modifier creation. Requested by
      Kristian.
      
      v4: Take advantage of the "INVALID" modifier added by the GET_PLANE2
      series.
      
      v5: Don't bother with storing modifiers for gbm_bo_create because that's
      a synchronous operation and we can actually select the correct modifier
      at create time (done in a later patch) (Jason)
      
      v6: Make modifier condition outside the check so that dri_use will work
      properly (Jason)
      
      Cc: Kristian Høgsberg <krh@bitplanet.net>
      References (v4): https://lists.freedesktop.org/archives/intel-gfx/2017-January/116636.htmlSigned-off-by: Ben Widawsky's avatarBen Widawsky <ben@bwidawsk.net>
      Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> (v1)
      Reviewed-by: Jason Ekstrand's avatarJason Ekstrand <jason@jlekstrand.net>
      Acked-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
      63bd2ae7
  16. 09 Mar, 2017 5 commits
  17. 24 Jan, 2017 2 commits
  18. 18 Oct, 2016 1 commit
  19. 27 Sep, 2016 1 commit
  20. 14 Sep, 2016 1 commit
  21. 07 Sep, 2016 1 commit
  22. 03 Aug, 2016 1 commit
  23. 01 Aug, 2016 1 commit
  24. 26 Jul, 2016 1 commit
  25. 23 Jun, 2016 3 commits
  26. 23 May, 2016 3 commits