CVS commit: [netbsd-6] xsrc/external/mit/xf86-video-intel/dist/src

2012-06-12 Thread Jeff Rizzo
Module Name:xsrc
Committed By:   riz
Date:   Tue Jun 12 19:15:06 UTC 2012

Modified Files:
xsrc/external/mit/xf86-video-intel/dist/src [netbsd-6]: i830_render.c

Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #316):
external/mit/xf86-video-intel/dist/src/i830_render.c: revision 1.2
Pull the similar fix from i915_render.c rev 1.2 and i965_render.c rev 1.2:
 http://mail-index.NetBSD.org/source-changes/2010/12/27/msg016345.html
  XXX: Fix crash with Firefox, where drawable is NULL.
  There must be a better fix for this.
 http://mail-index.NetBSD.org/source-changes/2011/01/21/msg017560.html
  Avoid a crash when pDrawable is null.
Fixes Xserver SEGV on starting Firefox on old i830/855GM machines
running 6.0_BETA2.
Should be pulled up to netbsd-6.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.2 -r1.1.1.2.2.1 \
xsrc/external/mit/xf86-video-intel/dist/src/i830_render.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-video-intel/dist/src/i830_render.c
diff -u xsrc/external/mit/xf86-video-intel/dist/src/i830_render.c:1.1.1.2 xsrc/external/mit/xf86-video-intel/dist/src/i830_render.c:1.1.1.2.2.1
--- xsrc/external/mit/xf86-video-intel/dist/src/i830_render.c:1.1.1.2	Tue Jun  9 02:54:33 2009
+++ xsrc/external/mit/xf86-video-intel/dist/src/i830_render.c	Tue Jun 12 19:15:05 2012
@@ -212,6 +212,8 @@ static uint32_t i830_get_blend_cntl(int 
 
 static Bool i830_check_composite_texture(PicturePtr pPict, int unit)
 {
+if (pPict-pDrawable == NULL)
+	return FALSE;
 ScrnInfoPtr pScrn = xf86Screens[pPict-pDrawable-pScreen-myNum];
 int w = pPict-pDrawable-width;
 int h = pPict-pDrawable-height;



CVS commit: [netbsd-6] xsrc/external/mit/xf86-video-intel/dist/src

2012-06-12 Thread Jeff Rizzo
Module Name:xsrc
Committed By:   riz
Date:   Tue Jun 12 19:31:04 UTC 2012

Modified Files:
xsrc/external/mit/xf86-video-intel/dist/src [netbsd-6]: i830.h

Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #319):
external/mit/xf86-video-intel/dist/src/i830.h: revision 1.3
Make xf86-video-intel driver work on Atom N455 + GMA3150 graphics chipset
by pulling the following change from upstream:
 
http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/commit/src/i830.h?id=8f64837e56b2de0fb8a9100d1a844fd3f18d751c
  Disable FBC on IGD for UMS
  It appears the new chip doesn't support FBC currently.
Tested on MSI U135DX + NetBSD/i386 6.0_BETA2 with this patch.
Should be pulled up to netbsd-6.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.2.1 \
xsrc/external/mit/xf86-video-intel/dist/src/i830.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-video-intel/dist/src/i830.h
diff -u xsrc/external/mit/xf86-video-intel/dist/src/i830.h:1.2 xsrc/external/mit/xf86-video-intel/dist/src/i830.h:1.2.2.1
--- xsrc/external/mit/xf86-video-intel/dist/src/i830.h:1.2	Sun May 15 23:03:21 2011
+++ xsrc/external/mit/xf86-video-intel/dist/src/i830.h	Tue Jun 12 19:31:04 2012
@@ -972,6 +972,8 @@ static inline int i830_fb_compression_su
 	return FALSE;
 if (IS_I810(pI830) || IS_I815(pI830) || IS_I830(pI830))
 	return FALSE;
+if (IS_IGD(pI830))
+	return FALSE;
 /* fbc depends on tiled surface. And we don't support tiled
  * front buffer with XAA now.
  */