commit | 50caa872eb8062a0a9ade5c86317e0df637f1a96 | [log] [tgz] |
---|---|---|
author | Miguel Casas <mcasas@chromium.org> | Thu Apr 08 13:22:32 2021 -0400 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Apr 09 00:40:39 2021 +0000 |
tree | 3c638e0837b208285c524a8894765637f75cc382 | |
parent | dc4534da3a07fe861eec3959458e4c41768b74c2 [diff] |
Use lseek() ISO gbm_bo_get_plane_size() This CL follows up on a comment in http://crrev/c/2808787 and stops using gbm_bo_get_plane_size(), using lseek() instead. Since lseek() needs an fd and usually we start from a struct gbm_bo, I made a local function in mmap.c (and inlined the other callsite in mmap_test.c BUG=b:183760490 TEST=emerge && deploy on volteer, mmap_test -b/-s/-d/-g working Change-Id: Ife14d703da0c5d202cb6b51b1a34f7e333bac435 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/drm-tests/+/2815603 Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org> Commit-Queue: Miguel Casas <mcasas@chromium.org> Tested-by: Miguel Casas <mcasas@chromium.org>