android_external_minigbm/cros_gralloc
Jason Macnak 3b405c8fdf UPSTREAM: 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
2024-10-14 16:39:48 -07:00
..
aidl Merge changes Ib8cc1147,I33f17670,Ib00873ba into main 2024-05-15 15:50:39 +00:00
gralloc0 Revert^2 "Merge upstream-main into main" 2024-07-03 18:21:13 +00:00
gralloc4 Define vintf_fragments as modules 2024-08-12 13:48:01 +09:00
mapper_stablec Merge changes Ib8cc1147,I33f17670,Ib00873ba into main 2024-05-15 15:50:39 +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_buffer_metadata.h gralloc: Avoid using std::optional in shared memory metadata 2024-01-23 13:52:17 -08: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 UPSTREAM: cros_gralloc: Avoid using masks in handle_usage() 2024-10-14 16:39:48 -07:00
cros_gralloc_helpers.h UPSTREAM: cros_gralloc: Avoid using masks in handle_usage() 2024-10-14 16:39:48 -07: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