diff options
author | Gurchetan Singh <gurchetansingh@chromium.org> | 2016-09-12 16:21:29 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-10-17 12:54:58 -0700 |
commit | 56662da3d05ee9bc13c19d071df6709a492d7e30 (patch) | |
tree | 8f3c6d325f69917e75c913d07995cd3890cb9679 /drv.h | |
parent | 2e786ad60038a7c772006e3190fcb8bcf1ff267d (diff) |
minigbm: Fix the flag situation
FrameBufferSurface.cpp (used by SurfaceFlinger) requires
GRALLOC_USAGE_HW_FB and GRALLOC_USAGE_HW_COMPOSER flags.
It's annoying to update so many flags in driver-supported lists, and
difficult to read. Let's remove redundant flags and try to keep the
ones that one have a distinct and granular meaning.
CQ-DEPEND=CL:362062
Change-Id: I6e1974b02e90a4a98c350867d71050fee728ce3a
Reviewed-on: https://chromium-review.googlesource.com/392546
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Diffstat (limited to 'drv.h')
-rw-r--r-- | drv.h | 19 |
1 files changed, 7 insertions, 12 deletions
@@ -39,18 +39,13 @@ extern "C" { #define DRV_BO_USE_SW_WRITE_NEVER (1ull << 7) #define DRV_BO_USE_SW_WRITE_RARELY (1ull << 8) #define DRV_BO_USE_SW_WRITE_OFTEN (1ull << 9) -#define DRV_BO_USE_HW_TEXTURE (1ull << 10) -#define DRV_BO_USE_HW_RENDER (1ull << 11) -#define DRV_BO_USE_HW_2D (1ull << 12) -#define DRV_BO_USE_HW_COMPOSER (1ull << 13) -#define DRV_BO_USE_HW_FB (1ull << 14) -#define DRV_BO_USE_EXTERNAL_DISP (1ull << 15) -#define DRV_BO_USE_PROTECTED (1ull << 16) -#define DRV_BO_USE_HW_VIDEO_ENCODER (1ull << 17) -#define DRV_BO_USE_HW_CAMERA_WRITE (1ull << 18) -#define DRV_BO_USE_HW_CAMERA_READ (1ull << 19) -#define DRV_BO_USE_HW_CAMERA_ZSL (1ull << 20) -#define DRV_BO_USE_RENDERSCRIPT (1ull << 21) +#define DRV_BO_USE_EXTERNAL_DISP (1ull << 10) +#define DRV_BO_USE_PROTECTED (1ull << 11) +#define DRV_BO_USE_HW_VIDEO_ENCODER (1ull << 12) +#define DRV_BO_USE_HW_CAMERA_WRITE (1ull << 13) +#define DRV_BO_USE_HW_CAMERA_READ (1ull << 14) +#define DRV_BO_USE_HW_CAMERA_ZSL (1ull << 15) +#define DRV_BO_USE_RENDERSCRIPT (1ull << 16) typedef enum { DRV_FORMAT_NONE, |