Skip to content
Browse files

Enable hardware vsync events

Change-Id: I0b8262be740dc8c219b8dcba203bff0af6c506c8
  • Loading branch information...
1 parent cac215f commit 51aca93edbaaeccc44d801192ae9f6396b91ce12 @grigorig committed Jan 23, 2013
Showing with 21 additions and 1 deletion.
  1. +0 −1 BoardConfig.mk
  2. +21 −0 include/linux/msm_mdp.h
View
1 BoardConfig.mk
@@ -72,7 +72,6 @@ COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE -DQCOM_LEGACY_OMX
# Graphics
BOARD_EGL_CFG := device/zte/blade/prebuilt/system/lib/egl/egl.cfg
USE_OPENGL_RENDERER := true
-TARGET_NO_HW_VSYNC := true
BOARD_ADRENO_DECIDE_TEXTURE_TARGET := true
COMMON_GLOBAL_CFLAGS += -DQCOM_ICS_COMPAT -DQCOM_NO_SECURE_PLAYBACK
View
21 include/linux/msm_mdp.h
@@ -66,6 +66,10 @@
#define MSMFB_WRITEBACK_TERMINATE _IO(MSMFB_IOCTL_MAGIC, 155)
#define MSMFB_MDP_PP _IOWR(MSMFB_IOCTL_MAGIC, 156, struct msmfb_mdp_pp)
+#define MSMFB_OVERLAY_VSYNC_CTRL _IOW(MSMFB_IOCTL_MAGIC, 160, unsigned int)
+#define MSMFB_VSYNC_CTRL _IOW(MSMFB_IOCTL_MAGIC, 161, unsigned int)
+#define MSMFB_METADATA_SET _IOW(MSMFB_IOCTL_MAGIC, 162, struct msmfb_metadata)
+
#define FB_TYPE_3D_PANEL 0x10101010
#define MDP_IMGTYPE2_START 0x10000
#define MSMFB_DRIVER_VERSION 0xF9E8D701
@@ -465,6 +469,23 @@ struct msmfb_mdp_pp {
} data;
};
+enum {
+ metadata_op_none,
+ metadata_op_base_blend,
+ metadata_op_max
+};
+
+struct mdp_blend_cfg {
+ uint32_t is_premultiplied;
+};
+
+struct msmfb_metadata {
+ uint32_t op;
+ uint32_t flags;
+ union {
+ struct mdp_blend_cfg blend_cfg;
+ } data;
+};
struct mdp_page_protection {
uint32_t page_protection;

0 comments on commit 51aca93

Please sign in to comment.
Something went wrong with that request. Please try again.