OSDN Git Service

minigbm: amdgpu: Add formats R8, GR88
authorDeepak Sharma <deepak.sharma@amd.com>
Mon, 2 Oct 2017 20:37:29 +0000 (13:37 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 3 Oct 2017 03:25:37 +0000 (20:25 -0700)
commit4a4646a5550219de6114311c552e288cb8619840
tree0d5753bf19653e065277e68ad52b222e3f095458
parenta1892b2800a5847525d010d6245cbcc1776c1bea
minigbm: amdgpu: Add formats R8, GR88

Add R8 and GR88 format for dma_bufs in amdgpu.
Required to support native GMB video playback.
If native GMB is enbaled,chrome transcodes NV12 to
RGB by importing Y plane as R8 EGLImage and the UV plane as GR88 EGLImage.

BUG=b:65302612
TEST=Boot Kahlee with --enable-native-gpu-memory-buffers and play youtube.

Change-Id: Ifa7e50959bb5417088357a0c0aa3ac874ecf6fc9
Signed-off-by: Deepak Sharma <deepak.sharma@amd.com>
Reviewed-on: https://chromium-review.googlesource.com/695850
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
amdgpu.c