diff options
author | Gurchetan Singh <gurchetansingh@google.com> | 2017-05-15 09:34:22 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-05-23 23:59:12 -0700 |
commit | 8ac0c9a9550bd1fa57e49613fae45df9001f74fc (patch) | |
tree | 6ca0f0ccdcddc6ddc2bdf31a7bcaf307005477ac /drv.h | |
parent | de558ae8a22cbd6c0b25691b56c6fd4884ec3ac5 (diff) |
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>
Diffstat (limited to 'drv.h')
-rw-r--r-- | drv.h | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -49,10 +49,6 @@ extern "C" { #define DRM_FORMAT_FLEX_IMPLEMENTATION_DEFINED fourcc_code('9', '9', '9', '8') #define DRM_FORMAT_FLEX_YCbCr_420_888 fourcc_code('9', '9', '9', '9') -#define BO_COMMON_USE_MASK BO_USE_LINEAR | BO_USE_RENDERING | \ - BO_USE_SW_READ_OFTEN | BO_USE_SW_WRITE_OFTEN | \ - BO_USE_SW_READ_RARELY | BO_USE_SW_WRITE_RARELY | \ - BO_USE_TEXTURE // clang-format on struct driver; struct bo; |