git: 9front

Download patch

ref: e20d9cdf832bedc01e19bbd85d462f9b08df42d6
parent: 16ff07c376dd521c5516f81f223ab4d1b4cb356d
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Jan 12 11:52:49 EST 2015

igfx: set the display/overlay/cursor plane override disbale bits for G45 (like bios)

--- a/sys/src/cmd/aux/vga/igfx.c
+++ b/sys/src/cmd/aux/vga/igfx.c
@@ -1004,6 +1004,10 @@
 	csr(igfx, p->cur->cntr.a, 1<<5 | 7, 0);
 	csr(igfx, p->cur->base.a, ~0, 0);	/* arm */
 
+	/* display/overlay/cursor planes off */
+	if(igfx->type == TypeG45)
+		csr(igfx, p->conf.a, 0, 3<<18);
+
 	/* disable cpu pipe */
 	disabletrans(igfx, p);
 
--