summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/screen.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-07-18 10:16:00 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-07-18 10:16:00 +0200
commitb9ca8e83784b94e709e7d412eb4f87fa0a1885a8 (patch)
treee941217032e777d7ec33805930924d7fdd265aec /sys/src/9/pc/screen.h
parent5654f15e56087986812c557412d558482383fc8b (diff)
vga: softscreen
allow the shadow framebuffer (softscreen) to be used with any vga driver, not just vesa. this removes the ugly scr->paddr = 0 hack employed by vesa driver to force softscreen and adds a softscreen vgactl message that can switch the feature on and off at runtime. softscreen can greatly improve graphics performance when bus reads are slow even tho it disables hardware acceleration.
Diffstat (limited to 'sys/src/9/pc/screen.h')
-rw-r--r--sys/src/9/pc/screen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/9/pc/screen.h b/sys/src/9/pc/screen.h
index 87771f60b..9afb280c6 100644
--- a/sys/src/9/pc/screen.h
+++ b/sys/src/9/pc/screen.h
@@ -120,6 +120,7 @@ struct VGAscr {
ulong id; /* internal identifier for driver use */
int isblank;
int overlayinit;
+ int softscreen;
};
extern VGAscr vgascreen[];