OSDN Git Service

amdgpu: Enable to allocate YVU420 buffer with BO_USE_TEXTURE_MASK flag
authorHirokazu Honda <hiroh@chromium.org>
Wed, 31 Jul 2019 08:33:06 +0000 (17:33 +0900)
committerchrome-bot <chrome-bot@chromium.org>
Fri, 9 Aug 2019 08:34:30 +0000 (01:34 -0700)
commit5dc63faf56e4833f45c18c7ab6be9f9847cfe53c
treefdb04a766c68c4559ab5e7237c4a27ec998abc2c
parentf659eb7d3df7f1bac875ecb11c8ec6f9c1f4a01f
amdgpu: Enable to allocate YVU420 buffer with BO_USE_TEXTURE_MASK flag

Chrome needs to allocate YUV420 buffer that cpu can read and write with a linear
view. YUV420 is not supported by gbm widely. YVU420 is used on behalf of YUV420.
This CL adds YVU420 to texture_source_formats so that YVU420 buffer can be
allocated on AMD platform.

BUG=chromium:987860
TEST=None

Change-Id: I11af92e74ad1d3c7c5631e67c5a2fef90077d887
Reviewed-on: https://chromium-review.googlesource.com/1728730
Tested-by: Hirokazu Honda <hiroh@chromium.org>
Commit-Ready: Hirokazu Honda <hiroh@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
amdgpu.c