OSDN Git Service

minigbm: rockchip: Enable required Android buffers
authorGurchetan Singh <gurchetansingh@chromium.org>
Fri, 14 Oct 2016 00:23:15 +0000 (17:23 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 18 Oct 2016 20:40:16 +0000 (13:40 -0700)
commit3d5a9b466637e424d567a7dfeb851977995eb27a
treec5cfabed65f9c8f813ce0f81b23a1ae2c7721e61
parent5521bde70f7781edbf5d6f5cced4b9cea41d0518
minigbm: rockchip: Enable required Android buffers

The Play store passes down the 0x8933 flag sometimes, which translates
to:

GRALLOC_USAGE_SW_READ_OFTEN | GRALLOC_USAGE_SW_WRITE_OFTEN |
GRALLOC_USAGE_HW_TEXTURE | GRALLOC_USAGE_HW_COMPOSER |
GRALLOC_USAGE_HW_FB | GRALLOC_USAGE_CURSOR

so we need to handle this case with ABGR8888 buffers.  In addition,
the dEQP EGL tests require RGB565 and XBGR8888 formats to succeed.

BUG=chromium:616275
TEST=Play angry birds on minnie, also verified all EGL dEQP tests pass:

run cts --package com.drawelements.deqp.egl

CQ-DEPEND=CL:392548

Change-Id: Ifb4953741bdd4c85a210e499061c8c4a0a6a731e
Reviewed-on: https://chromium-review.googlesource.com/398424
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
rockchip.c