OSDN Git Service

minigbm: align BO_USE flags with GBM flags
authorDavid Stevens <stevensd@chromium.org>
Wed, 25 Dec 2019 07:35:55 +0000 (16:35 +0900)
committerCommit Bot <commit-bot@chromium.org>
Thu, 16 Jan 2020 15:25:55 +0000 (15:25 +0000)
Swap the values of the BO_USE encoder and decoder flags, to match the
values of the respective GBM flags.

BUG=none
TEST=compile

Change-Id: I419ca7b8234d4ce4e8a771ee608efac836b7d007
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/1980687
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: David Stevens <stevensd@chromium.org>
Commit-Queue: David Stevens <stevensd@chromium.org>

drv.h

diff --git a/drv.h b/drv.h
index d3cfb45..ab71a06 100644 (file)
--- a/drv.h
+++ b/drv.h
@@ -33,8 +33,8 @@ extern "C" {
 #define BO_USE_SW_READ_RARELY          (1ull << 10)
 #define BO_USE_SW_WRITE_OFTEN          (1ull << 11)
 #define BO_USE_SW_WRITE_RARELY         (1ull << 12)
-#define BO_USE_HW_VIDEO_ENCODER         (1ull << 13)
-#define BO_USE_HW_VIDEO_DECODER         (1ull << 14)
+#define BO_USE_HW_VIDEO_DECODER         (1ull << 13)
+#define BO_USE_HW_VIDEO_ENCODER         (1ull << 14)
 #define BO_USE_RENDERSCRIPT            (1ull << 15)
 
 /* Quirks for allocating a buffer. */