Patchwork [meta-fsl-arm,1/7] xf86-video-imxfb: Fix Xorg driver with newer API

login
register
mail settings
Submitter Otavio Salvador
Date April 1, 2013, 7:39 p.m.
Message ID <1364845165-18038-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/47221/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - April 1, 2013, 7:39 p.m.
From: Daiane Angolini <daiane.angolini@freescale.com>

The previous patch which ported the Xorg driver for newer API had a
mistaken change which broke the acceleration support; this patch fixes
it reverting the mislanding changes.

Change-Id: I74ebb311706af37c4f4141e42074e7ba81d9e671
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
---
 .../Make-video-API-forward-and-backward-compatible.patch          | 2 +-
 .../xorg-driver/xf86-video-imxfb/xserver-1.14-compat.patch        | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

Patch

diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb/Make-video-API-forward-and-backward-compatible.patch b/recipes-graphics/xorg-driver/xf86-video-imxfb/Make-video-API-forward-and-backward-compatible.patch
index acfda91..2ac6311 100644
--- a/recipes-graphics/xorg-driver/xf86-video-imxfb/Make-video-API-forward-and-backward-compatible.patch
+++ b/recipes-graphics/xorg-driver/xf86-video-imxfb/Make-video-API-forward-and-backward-compatible.patch
@@ -282,7 +282,7 @@  index 178e36e..f4b3e38 100644
 +imxScreenInit(SCREEN_INIT_ARGS_DECL)
  {
 -	ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
-+	SCRN_INFO_PTR(pScreen);
++	ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
  	ImxPtr fPtr = IMXPTR(pScrn);
  	VisualPtr visual;
  	int init_picture = 0;
diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb/xserver-1.14-compat.patch b/recipes-graphics/xorg-driver/xf86-video-imxfb/xserver-1.14-compat.patch
index a1e05a2..14ccbbf 100644
--- a/recipes-graphics/xorg-driver/xf86-video-imxfb/xserver-1.14-compat.patch
+++ b/recipes-graphics/xorg-driver/xf86-video-imxfb/xserver-1.14-compat.patch
@@ -24,3 +24,11 @@  Index: xserver-xorg-video-imx-11.09.01/src/imx_driver.c
  #include "micmap.h"
  #include "colormapst.h"
  #include "xf86cmap.h"
+@@ -722,7 +721,6 @@ imxScreenInit(SCREEN_INIT_ARGS_DECL)
+ 	/* Initialize for X extensions. */
+ 	imxExtInit();
+ 
+-	miInitializeBackingStore(pScreen);
+ 	xf86SetBackingStore(pScreen);
+ 
+ 	/* software cursor */