Skip to content
Snippets Groups Projects
  1. Jul 21, 2023
    • Amit Pundir's avatar
      Merge remote-tracking branch 'aosp/upstream-main' into 'aosp/main' · 21fc4f10
      Amit Pundir authored
      
      * aosp/upstream-main: (27 commits)
        minigbm: add some validation check in cros_gralloc
        minigbm: update format of mediatek.c
        Revert "i915: Vertical align video encode buffers to macroblock size"
        minigbm: drv: Fix MINIGBM_DEBUG usage on Android
        mediatek: Add BO_USE_PROTECTED use_flag for gpu and video decoder
        i915: Vertical align video encode buffers to macroblock size
        Don't print verbose messages by default
        virgl: Store format modifier in blob's bo meta
        Fix convertToFenceHandle()
        minigbm: update drv_get_os_option() to try getenv() first
        Update usage to 64-bit
        virtgpu_cross_domain: fix prop query for mt8183 camera quirk
        virtgpu_virgl: use blobs for ABGR8888
        minigbm: move camera work-around
        mediatek: Add BO_USE_PROTECTED use_flag to support secure buffer allocation
        i915: prefer tile4 for non-linear scanout buffers
        i915: allow linear mapping for P010 scanout
        minigbm: remove `close_gem_handle`
        mediatek: Exclude MT8173's FP16 and 10-bit ABGR support
        minigbm: Use clflushopt if supported
        ...
      
      Change-Id: I38fb3f2c699205f73633e07d1824c4fd48dac5f5
      Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
      21fc4f10
    • Amit Pundir's avatar
      android: sepolicy: Add minigbm SELinux policies · d046ea00
      Amit Pundir authored
      
      Add default set of minigbm SELinux policies, to suppress
      audit of minigbm reading vendor.minigbm.debug property,
      for the devices which do not use this property.
      
      Change-Id: I277a553e869b7a53a85ca70064c2eef110afeee2
      Signed-off-by: default avatarAmit Pundir <amit.pundir@linaro.org>
      d046ea00
  2. Jul 18, 2023
  3. Jul 07, 2023
  4. Jul 05, 2023
  5. Jun 27, 2023
  6. Jun 23, 2023
  7. Jun 21, 2023
  8. Jun 16, 2023
  9. Jun 08, 2023
  10. Jun 01, 2023
  11. May 31, 2023
  12. May 30, 2023
  13. May 26, 2023
    • John Reck's avatar
      Update usage to 64-bit · 892756e9
      John Reck authored
      Bug: 284333373
      Test: Mapper5 VTS GetUsage64
      Change-Id: I28f10be812039f4129d32572895d20b26d11c1fe
      892756e9
  14. May 10, 2023
    • Lloyd Pique's avatar
      virtgpu_virgl: use blobs for ABGR8888 · b20510ae
      Lloyd Pique authored
      This is slightly modified version of another patch originally created by
      David Stevens (stevensd@chromium.org), but since reverted.
      
      https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/3256451
      
      Use blob buffers for ABGR8888 format buffers. This is necessary on ARCVM
      to mitigate a performance problem with the
      `testSurfaceTransaction_setEnableBackPressure` test from the
      `CtsViewTestCases`, as the test expects to be able to read back rendered
      buffers at 60fps.
      
      Almost all the code is the same, with the only differences (besides some
      minor conflict resolutions resurrecting this patch) being in the
      switch statement in `should_use_blob` in `virtgpu_virgl.c` where a check
      for ABGR8888 is added.
      
      The rest of the change is as authored by stevensd@, which requires
      knowing the host buffer layout before creating the blob resource, and
      using an LRU cache of layouts to avoid the overhead of querying the host
      every time a buffer is created.
      
      As noted in stevensd@'s CL, virgpu_cross_domain will be the preferred
      replacement to virgpu_virgl, and which is expected to have better
      performance without this kludge.
      
      TEST=CtsViewTestCases on hatch
      BUG=b:235308831
      
      Change-Id: Ia58573a8477e0c17239d6a0768ee53782fac1dd3
      Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4505920
      
      
      Reviewed-by: default avatarYiwei Zhang <zzyiwei@chromium.org>
      Commit-Queue: Yiwei Zhang <zzyiwei@chromium.org>
      Commit-Queue: Lloyd Pique <lpique@chromium.org>
      Auto-Submit: Lloyd Pique <lpique@chromium.org>
      Tested-by: default avatarLloyd Pique <lpique@chromium.org>
      b20510ae
  15. May 02, 2023
  16. Apr 25, 2023
  17. Apr 24, 2023
  18. Apr 21, 2023
  19. Apr 18, 2023
  20. Apr 09, 2023
    • Dawn Han's avatar
      minigbm: clean up bo.handles · 84b3a09e
      Dawn Han authored
      The multi-planar formats are being allocated into a single plane,
      and the minigbm exynos backend is dropped. So we can use `handle` instead of handles as of now.
      
      Remove some of the helper functions that calculate the number of planes.
      There is no need to check if there is more than one kernel buffer per buffer object.
      
      Added a new function `drv_gem_close` in `drv_helpers` that can be used by `drv_gem_bo_destroy` and `drv_prime_bo_import`. It can be used to clean the unused gem_handle.
      
      Bug=b:266776512
      TEST=camera and screenshot work fine after deploying the change #strongbad
      TEST=camera and screenshot work fine after deploying the change #kukui-arc-r
      TEST=camera and screenshot work fine after deploying the change, tested a couple of apps in the Google Play Store, and checked file `dma_buf/bufinfo` to see there's no object leaking. #guybrush
      
      Change-Id: Ib63559504e4cb8f1a32ae90170925146613d694f
      Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4297873
      
      
      Commit-Queue: Dawn Han <dawnhan@google.com>
      Reviewed-by: default avatarYiwei Zhang <zzyiwei@chromium.org>
      Tested-by: default avatarDawn Han <dawnhan@google.com>
      84b3a09e
    • Dawn Han's avatar
      minigbm: refactor the logic in import_into_minigbm · 6f3f6cb9
      Dawn Han authored
      Multi-planer formats are being allocated into a single plane,
      so `dmabuf_sizes[DRV_MAX_PLANES]` is no longer needed. There
      is only one `dmabuf_size` now.
      
      And use bo->handles[0] only. In the clean-up function, close
      handle[0] if it's not empty.
      
      Bug=b:266776512
      TEST=camera and screenshot work fine after deploying the
      change #kukui-arc-ri
      
      Change-Id: I068bcafbfbaf1b2be543aec3a4d87e1870a10d23
      Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/4338596
      
      
      Reviewed-by: default avatarYiwei Zhang <zzyiwei@chromium.org>
      Commit-Queue: Dawn Han <dawnhan@google.com>
      Tested-by: default avatarDawn Han <dawnhan@google.com>
      6f3f6cb9
  21. Apr 04, 2023
  22. Apr 03, 2023
  23. Mar 31, 2023
  24. Mar 28, 2023
  25. Mar 24, 2023
  26. Mar 23, 2023
  27. Mar 20, 2023
  28. Mar 16, 2023
Loading