commit | 40b28f098a29589b3f72de1ba6753d46a616c48b | [log] [tgz] |
---|---|---|
author | Marcin Radomski <[email protected]> | Thu Mar 07 13:46:36 2024 +0000 |
committer | Chromeos LUCI <[email protected]> | Tue Mar 12 11:19:37 2024 +0000 |
tree | 24d6a273cf197f7c60eca451be539ed4087caa1a | |
parent | 3b508e145f1acfd3895daab0089ebd54cd924bb2 [diff] |
minigbm: add gbm_{bo,surface}_create_with_modifiers2 Rationale: this will help get Rust gbm bindings into Android (go/drm-gbm-rust-crates-for-android) without needing minigbm-specific patches to upstream Rust code. Upstream Mesa gbm defines those functions as variants with an extra "flags" argument[2][3] (these don't exist in the mesa version checked into Chromium though). The definitions added in this CL provide variants that fail for any non-zero flags. [1] https://crates.io/crates/gbm [2] https://gitlab.freedesktop.org/mesa/mesa/-/blob/b7d6d90dabad885c2578e2195901f60ac6ac4e7c/src/gbm/main/gbm.h#L303 [3] https://gitlab.freedesktop.org/mesa/mesa/-/blob/b7d6d90dabad885c2578e2195901f60ac6ac4e7c/src/gbm/main/gbm.h#L443 Bug: 328363177 Test: cros build-packages --board=amd64-generic minigbm drm-tests Change-Id: I9284d597e2d4de5ff9b677db0a0ffe6d274e4f57 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/5352371 Reviewed-by: Dominik Behr <[email protected]> Reviewed-by: Gurchetan Singh <[email protected]> Commit-Queue: Marcin Radomski <[email protected]> Tested-by: Marcin Radomski <[email protected]>