OSDN Git Service

minigbm: remove BO_USE_RENDERING from certain formats
authorGurchetan Singh <gurchetansingh@google.com>
Mon, 15 May 2017 16:34:22 +0000 (09:34 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Wed, 24 May 2017 06:59:12 +0000 (23:59 -0700)
commit8ac0c9a9550bd1fa57e49613fae45df9001f74fc
tree6ca0f0ccdcddc6ddc2bdf31a7bcaf307005477ac
parentde558ae8a22cbd6c0b25691b56c6fd4884ec3ac5
minigbm: remove BO_USE_RENDERING from certain formats

We can't use GR88, R8, YV12, NV12, UYVY, YUYV buffers as render
targets, so let's remove the BO_USE_RENDERING flag from these
formats. However, we can sample from these formats (though this
feature still needs to be enabled in our drivers), so the
BO_USE_TEXTURE flag remains set.

Also, change our interpretation of the GRALLOC_USAGE_HW_COMPOSER
flag such that it implies BO_USE_SCANOUT | BO_USE_TEXTURE. This
is because the OpenGL fallback textures from the buffer if
can't be scanned-out, not renders to it.

BUG=none
TEST=run Youtube app on Kevin

Change-Id: I9ea8452279e110bc1a9579f162abe1c72192eb40
Reviewed-on: https://chromium-review.googlesource.com/506812
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
20 files changed:
amdgpu.c
cirrus.c
cros_gralloc/cros_gralloc_helpers.cc
drv.h
drv_priv.h
evdi.c
exynos.c
gma500.c
helpers.c
helpers.h
i915.c
marvell.c
mediatek.c
nouveau.c
rockchip.c
tegra.c
udl.c
vc4.c
vgem.c
virtio_gpu.c