commit | 93f8df5ef9bb1c48f7010232ad5f219cab08d461 | [log] [tgz] |
---|---|---|
author | John Bauman <jbauman@google.com> | Wed Dec 15 23:24:33 2021 +0000 |
committer | John Bauman <jbauman@google.com> | Thu Dec 16 17:44:50 2021 +0000 |
tree | 1b3fcd01fcb3205b4d5492e6d3b81778b6c31f5c | |
parent | 28c93ce5889b329d06d0ccbf0b0cf04cba6150d4 [diff] |
Set *pitch in bufmgr_bo_alloc_tiled Pitch is an out parameter, and the value is used by vaGetImage and elsewhere. Change-Id: I7eb7d1fcd095454d81369e1cf7b7a764781391a1
diff --git a/media_driver/linux/common/os/magma/mos_bufmgr_magma.cpp b/media_driver/linux/common/os/magma/mos_bufmgr_magma.cpp index 8556819..0a3a82b 100644 --- a/media_driver/linux/common/os/magma/mos_bufmgr_magma.cpp +++ b/media_driver/linux/common/os/magma/mos_bufmgr_magma.cpp
@@ -267,6 +267,8 @@ uint64_t height = get_height_with_tiling(y, tiling); uint64_t size = ROUND_UP_TO(stride * height, 4096); + *pitch = stride; + MagmaBo* bo = static_cast<MagmaBufMgr*>(bufmgr)->CreateBo(name, size); if (bo)