commit | 3b508e145f1acfd3895daab0089ebd54cd924bb2 | [log] [tgz] |
---|---|---|
author | Marcin Radomski <[email protected]> | Thu Mar 07 12:08:08 2024 +0000 |
committer | Chromeos LUCI <[email protected]> | Tue Mar 12 11:19:34 2024 +0000 |
tree | bc8f802c8fc6243cdd59fa36279db7b038f52f0a | |
parent | e950d82ae26aedd1b7738ea093e46fc54aa29f65 [diff] |
minigbm: use int instead of size_t for plane index 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. Mesa gbm defines the plane argument for some functions as int rather than size_t. While this doesn't bother C/C++ compilers too much, attempting to use bindgen-generated Rust bindings to minigbm with gbm Rust crate[1] fails. [1] https://crates.io/crates/gbm Bug: 328363177 Test: cros build-packages --board=amd64-generic minigbm drm-tests Change-Id: I5938633e0936bf1b9aafb856bfb966ceb1fb1a2b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/5352370 Reviewed-by: Dominik Behr <[email protected]> Commit-Queue: Marcin Radomski <[email protected]> Tested-by: Marcin Radomski <[email protected]> Reviewed-by: Gurchetan Singh <[email protected]>