android_external_minigbm/cros_gralloc
Ren-Pei Zeng d56aa1353a cros_gralloc: Fix gralloc -> gbm usage flag mapping
GRALLOC_USAGE_SW_READ_RARELY was incorrectly mapped to
BO_USE_SW_READ_OFTEN since GRALLOC_USAGE_SW_READ_OFTEN (== 3) contains
GRALLOC_USAGE_SW_READ_RARELY (== 2) in bit mask. Fix it by making the
flag check compare the full bit mask.

Same for the WRITE case.

BUG=None
TEST=CQ

Change-Id: I0c1e0e6f07978b6090472b2d470f5880ad231d0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/5907583
Reviewed-by: Jason Macnak <natsu@google.com>
Tested-by: Ren-Pei Zeng <kamesan@chromium.org>
Commit-Queue: Ren-Pei Zeng <kamesan@chromium.org>
2024-10-04 17:09:07 +00:00
..
aidl cros_gralloc: Remove Android.bp files 2024-03-13 00:34:56 +00:00
gralloc0 minigbm: format fix 2024-05-01 08:09:45 +00:00
gralloc4 gralloc: Sync with AOSP 2024-02-27 18:49:17 +00:00
mapper_stablec cros_gralloc: Remove Android.bp files 2024-03-13 00:34:56 +00:00
sepolicy gralloc: Upstream AIDL allocator, stablec mapper, and sepolicy 2023-09-28 17:11:53 +00:00
cros_gralloc_buffer.cc gralloc: Sync with AOSP 2024-02-27 18:49:17 +00:00
cros_gralloc_buffer.h gralloc: Sync with AOSP 2024-02-27 18:49:17 +00:00
cros_gralloc_driver.cc gralloc: Error when locking buffer alloc'd without CPU_ usage 2024-09-26 21:08:07 +00:00
cros_gralloc_driver.h gralloc: Error when locking buffer alloc'd without CPU_ usage 2024-09-26 21:08:07 +00:00
cros_gralloc_handle.h Update usage to 64-bit 2023-05-31 04:42:17 +00:00
cros_gralloc_helpers.cc cros_gralloc: Fix gralloc -> gbm usage flag mapping 2024-10-04 17:09:07 +00:00
cros_gralloc_helpers.h Update usage to 64-bit 2023-05-31 04:42:17 +00:00
Makefile minigbm: add minigbm_create_default_device helper 2023-02-06 22:54:56 +00:00
OWNERS OWNERS: add ryanneph@google.com 2024-09-26 18:58:25 +00:00