hwc: Fix reserved field usage
Use the top 16 bits of reserved[3] for HDMI and the bottom 16 for FPS. A follow up patch in the MDP driver will get rid of reserved field usage entirely. Change-Id: Ic9f7a2f91b46b0dec830ea54784b7775009fbe48
This commit is contained in:
committed by
Iliyan Malchev
parent
5b6708ac87
commit
9edd17cc64
@@ -291,7 +291,7 @@ int mapFrameBufferLocked(struct private_module_t* module)
|
||||
float xdpi = (info.xres * 25.4f) / info.width;
|
||||
float ydpi = (info.yres * 25.4f) / info.height;
|
||||
//The reserved[3] field is used to store FPS by the driver.
|
||||
float fps = info.reserved[3];
|
||||
float fps = info.reserved[3] & 0xFF;
|
||||
|
||||
ALOGI("using (fd=%d)\n"
|
||||
"id = %s\n"
|
||||
|
||||
@@ -84,7 +84,7 @@ void disp_mode_timing_type::set_info(struct fb_var_screeninfo &info) const
|
||||
info.reserved[0] = 0;
|
||||
info.reserved[1] = 0;
|
||||
info.reserved[2] = 0;
|
||||
info.reserved[3] = video_format;
|
||||
info.reserved[3] = info.reserved[3] | (video_format << 16);
|
||||
|
||||
info.xoffset = 0;
|
||||
info.yoffset = 0;
|
||||
|
||||
Reference in New Issue
Block a user