android_external_minigbm/cros_gralloc
Jason Macnak 93e16b9029 cros_gralloc: Avoid using masks in handle_usage()
After https://crrev.com/c/5907583, handle_usage() tries to match
the entire value. An allocation with usage 0x100000203 from

  BufferUsage::GPU_RENDER_TARGET |
  BufferUsage::CPU_READ_OFTEN |
  BufferUsage::FRONT_BUFFER

would fail to match the combined BUFFER_USAGE_FRONT_RENDERING_MASK
(`1U << 28 | 1ULL << 32`) because the allocation only sets a
single usage bit `BUFFER_USAGE_FRONT_RENDERING` (`1ULL << 32`)
and not the combined mask.

Bug: b/373474508
Test: vts -m VtsHalGraphicsAllocatorAidl_TargetTest
Change-Id: I926789a7aab937f2c2092475cb40ad9666b4f95f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/5932803
Auto-Submit: Jason Macnak <natsu@google.com>
Tested-by: Jason Macnak <natsu@google.com>
Reviewed-by: Ren-Pei Zeng <kamesan@chromium.org>
Commit-Queue: Jason Macnak <natsu@google.com>
2024-10-15 16:19:58 +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 Revert "gralloc: Error when locking buffer alloc'd without CPU_ usage" 2024-10-08 20:42:45 +00:00
cros_gralloc_driver.h Revert "gralloc: Error when locking buffer alloc'd without CPU_ usage" 2024-10-08 20:42:45 +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: Avoid using masks in handle_usage() 2024-10-15 16:19:58 +00:00
cros_gralloc_helpers.h cros_gralloc: Avoid using masks in handle_usage() 2024-10-15 16:19:58 +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