No description
Find a file
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
cros_gralloc cros_gralloc: Avoid using masks in handle_usage() 2024-10-15 16:19:58 +00:00
external Add format filtering for virgl gfxstream 2024-08-01 15:42:33 +00:00
.clang-format minigbm: add clang-format and presubmit hooks 2017-03-31 10:40:27 -07:00
amdgpu.c dri: pass use_flags to dri_bo_create_with_modifiers 2024-09-04 02:19:39 +00:00
backend_mock.c minigbm: format fix 2024-05-01 08:09:45 +00:00
common.mk minigbm: Update common.mk to unbreak gcc and bfd builds 2024-09-03 12:44:03 +00:00
DIR_METADATA DIR_METADATA: Add V2 Test Plans. 2022-11-30 01:25:57 +00:00
dri.c dri: pass use_flags to dri_bo_create_with_modifiers 2024-09-04 02:19:39 +00:00
dri.h dri: pass use_flags to dri_bo_create_with_modifiers 2024-09-04 02:19:39 +00:00
drv.c minigbm: format fix 2024-05-01 08:09:45 +00:00
drv.h i915: Remove media compression support 2024-09-25 15:34:16 +00:00
drv_array_helpers.c minigbm: refactor driver helpers 2021-10-01 18:35:11 +00:00
drv_array_helpers.h minigbm: refactor driver helpers 2021-10-01 18:35:11 +00:00
drv_helpers.c Add depth buffer support for virtgpu virgl 2024-06-26 15:22:27 +00:00
drv_helpers.h Revert "gralloc: Error when locking buffer alloc'd without CPU_ usage" 2024-10-08 20:42:45 +00:00
drv_priv.h minigbm: Add an API to return cache attributes 2024-02-01 17:40:19 +00:00
dumb_driver.c minigbm: Add more dumb drivers 2022-12-07 14:36:24 +00:00
gbm.c minigbm: add gbm_{bo,surface}_create_with_modifiers2 2024-03-12 11:19:37 +00:00
gbm.h minigbm: #define MINIGBM_HAS_GBM_BO_GET_MAP_INFO 2024-06-18 03:02:33 +00:00
gbm_helpers.c minigbm: passthrough SENSOR_DIRECT_DATA via gbm frontend 2022-07-26 23:41:35 +00:00
gbm_helpers.h minigbm: standardize naming of buffer creation flags 2017-10-02 17:27:17 -07:00
gbm_priv.h minigbm: add clang-format and presubmit hooks 2017-03-31 10:40:27 -07:00
gbm_unittest.cc minigbm: format fix 2024-05-01 08:09:45 +00:00
i915.c i915: allow DRM_FORMAT_YVU420_ANDROID for camera use 2024-10-10 22:08:10 +00:00
LICENSE minigbm: Add a LICENSE file 2017-04-21 21:57:32 -07:00
Makefile minigbm: autogenerate gbm.pc and cleanup build variables 2024-05-10 20:49:02 +00:00
mediatek.c mediatek: allow DRM_FORMAT_YVU420_ANDROID for camera use 2024-10-10 14:55:09 +00:00
minigbm_helpers.c minigbm: clean up legacy gbm_get_default_device_fd usage 2023-03-09 05:06:53 +00:00
minigbm_helpers.h minigbm: clean up legacy gbm_get_default_device_fd usage 2023-03-09 05:06:53 +00:00
msm.c msm: pad extra for YV12 to align with freedreno fdl_layout 2024-04-29 23:20:14 +00:00
OWNERS OWNERS: add ryanneph@google.com 2024-09-26 18:58:25 +00:00
PRESUBMIT.cfg minigbm: fix typo in PRESUBMIT.cfg 2017-05-20 03:55:21 -07:00
presubmit.sh minigbm: i915: use local i915 drm header 2020-11-25 22:35:14 +00:00
rockchip.c minigbm: clean up bo.handles 2023-04-09 18:57:40 +00:00
testrunner.cc minigbm: add unit test for minigbm public apis 2024-01-30 20:59:57 +00:00
util.h minigbm: format fix 2024-05-01 08:09:45 +00:00
vc4.c minigbm: clean up bo.handles 2023-04-09 18:57:40 +00:00
virtgpu.c drv/virtgpu: add log level for logging 2022-07-14 08:48:27 +00:00
virtgpu.h Add format filtering for virgl gfxstream 2024-08-01 15:42:33 +00:00
virtgpu_cross_domain.c virtgpu_cross_domain: fix planar size calculation 2024-09-11 02:25:27 +00:00
virtgpu_virgl.c Initialize emulated_metadata fields to avoid uninitialized warnings 2024-08-27 00:06:40 +00:00