shithub: riscv

Download patch

ref: eeb8007e607cfea2d3f503f2c6bdf98875c115c9
parent: 8c358c3f97db172a131c36d593b9aabeed6bc645
author: qwx <devnull@localhost>
date: Sun Aug 20 09:52:52 EDT 2017

igfx: add did for x220

--- a/lib/vgadb
+++ b/lib/vgadb
@@ -430,6 +430,7 @@
 	ctlr=geode linear=1
 
 ctlr
+	vid=0x8086 did=0x0126	# Intel 2nd Gen Core (HD 3000)
 	vid=0x8086 did=0x0166	# Intel 3rd Gen Core
 	vid=0x8086 did=0x2a42	# Intel 4 Series Mobile
 	vid=0x8086 did=0x0a16	# Intel 4th Gen Core (HD 4400)
--- a/sys/src/9/pc/vgaigfx.c
+++ b/sys/src/9/pc/vgaigfx.c
@@ -18,6 +18,7 @@
 	switch(p->did){
 	case 0x0412:	/* Haswell HD Graphics 4600 */
 	case 0x0a16:	/* Haswell HD Graphics 4400 */
+	case 0x0126:	/* Sandy Bridge HD Graphics 3000 */
 	case 0x0166:	/* Ivy Bridge */
 	case 0x0102:	/* Core-5 Sandy Bridge */
 	case 0x0152:	/* Core-i3 */
@@ -168,6 +169,7 @@
 		break;
 	case 0x0166:	/* Ivy Bridge */
 	case 0x0152:	/* Core-i3 */
+	case 0x0126:	/* Sandy Bridge HD Graphics 3000 */
 		if(pipe > 2)
 			return nil;
 		break;