diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-04-17 20:15:15 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-04-17 20:15:15 +0000 |
commit | 14795d9b5911a39cebdc613a27d0d20c34503401 (patch) | |
tree | c31a2ebdcfb64ea9fad437dd297ce80fbe3a79ef /sys/dev | |
parent | 4f4dbb41c82e876ba575a45a4236adff86b281ec (diff) |
Add support for 16bpp mode to code that interfaces with the rasops(9) code.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/i915/intel_fb.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/intel_fb.c b/sys/dev/pci/drm/i915/intel_fb.c index dc0f448deba..efb56630b9c 100644 --- a/sys/dev/pci/drm/i915/intel_fb.c +++ b/sys/dev/pci/drm/i915/intel_fb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: intel_fb.c,v 1.3 2013/04/14 19:04:37 kettenis Exp $ */ +/* $OpenBSD: intel_fb.c,v 1.4 2013/04/17 20:15:14 kettenis Exp $ */ /* * Copyright © 2007 David Airlie * @@ -167,6 +167,14 @@ intelfb_create(struct intel_fbdev *ifbdev, ri->ri_bnum = 8; ri->ri_bpos = 0; break; + case DRM_FORMAT_RGB565: + ri->ri_rnum = 5; + ri->ri_rpos = 11; + ri->ri_gnum = 6; + ri->ri_gpos = 5; + ri->ri_bnum = 5; + ri->ri_bpos = 0; + break; } } #endif |