diff options
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/pvr/Makefile | 3 | ||||
| -rw-r--r-- | drivers/gpu/pvr/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/drivers/gpu/pvr/Makefile b/drivers/gpu/pvr/Makefile index a848a8c79ec..11f512373f8 100644 --- a/drivers/gpu/pvr/Makefile +++ b/drivers/gpu/pvr/Makefile @@ -52,7 +52,8 @@ ccflags-y = -Idrivers/video/omap2 \ ccflags-$(CONFIG_SGX_OMAP3630) += \ -Idrivers/gpu/pvr/services4/system/omap3630 \ -DSGX530 -DSUPPORT_SGX530 -DSGXCORE=530 \ - -DSGX_CORE_REV=125 + -DSGX_CORE_REV=125 \ + -DSKIP_FIRST_FLIP_BUFS=4 ccflags-$(CONFIG_SGX_BUILD_RELEASE) += \ -DPVR_BUILD_TYPE="\"release\"" \ diff --git a/drivers/gpu/pvr/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c b/drivers/gpu/pvr/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c index 9525688ab40..ce3c8cbd38f 100644 --- a/drivers/gpu/pvr/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c +++ b/drivers/gpu/pvr/services4/3rdparty/dc_omapfb3_linux/omaplfb_linux.c @@ -334,6 +334,16 @@ void OMAPLFBFlip(OMAPLFB_DEVINFO *psDevInfo, OMAPLFB_BUFFER *psBuffer) struct fb_var_screeninfo sFBVar; int res; unsigned long ulYResVirtual; +#ifdef SKIP_FIRST_FLIP_BUFS + /* Skip first n numbers of flip buffers to avoid draw blank screen + * that occurred flicker at first time booting up + */ + static unsigned int skip_flips = SKIP_FIRST_FLIP_BUFS; + if (skip_flips) { + --skip_flips; + return; + } +#endif OMAPLFB_CONSOLE_LOCK(); |