diff options
| author | Hirokazu Honda <hiroh@chromium.org> | 2019-11-08 12:57:55 +0900 |
|---|---|---|
| committer | Commit Bot <commit-bot@chromium.org> | 2019-11-21 18:38:31 +0000 |
| commit | 5e55f956f70213ad990f796f511246a0bfd99d3e (patch) | |
| tree | f3481e62690dc299716f5d44a3becb9ef802c096 /cros_gralloc/gralloc0 | |
| parent | 37be43662a019bc3291661d3a0a8e61131588ed1 (diff) | |
| download | platform_external_minigbm-5e55f956f70213ad990f796f511246a0bfd99d3e.tar.gz platform_external_minigbm-5e55f956f70213ad990f796f511246a0bfd99d3e.tar.bz2 platform_external_minigbm-5e55f956f70213ad990f796f511246a0bfd99d3e.zip | |
gralloc0: Add BO_USE_HW_VIDEO_ENCODER mask in GRALLOC_USAGE_HW_VIDEO_ENCODER
BUG=b:144135251
TEST=ARC++ encoder on kukui
Change-Id: Ic15adebf2266b51aeaa19e863369e1c49c4fab03
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/1904910
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Hirokazu Honda <hiroh@chromium.org>
Auto-Submit: Hirokazu Honda <hiroh@chromium.org>
Commit-Queue: Hirokazu Honda <hiroh@chromium.org>
Diffstat (limited to 'cros_gralloc/gralloc0')
| -rw-r--r-- | cros_gralloc/gralloc0/gralloc0.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cros_gralloc/gralloc0/gralloc0.cc b/cros_gralloc/gralloc0/gralloc0.cc index eef5d2f..fcedc8e 100644 --- a/cros_gralloc/gralloc0/gralloc0.cc +++ b/cros_gralloc/gralloc0/gralloc0.cc @@ -71,9 +71,11 @@ static uint64_t gralloc0_convert_usage(int usage) use_flags |= BO_USE_NONE; if (usage & GRALLOC_USAGE_PROTECTED) use_flags |= BO_USE_PROTECTED; - if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) + if (usage & GRALLOC_USAGE_HW_VIDEO_ENCODER) { + use_flags |= BO_USE_HW_VIDEO_ENCODER; /*HACK: See b/30054495 */ use_flags |= BO_USE_SW_READ_OFTEN; + } if (usage & GRALLOC_USAGE_HW_CAMERA_WRITE) use_flags |= BO_USE_CAMERA_WRITE; if (usage & GRALLOC_USAGE_HW_CAMERA_READ) |
