diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-04-08 10:54:16 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2020-04-08 10:54:16 +0000 |
commit | 815d15ada2c45784bee39d0bbe9cad9d12df4dcd (patch) | |
tree | f36cf0741d1283f2164ce0e4791607eff46c1935 /sys/dev/fdt | |
parent | 3809b1c0f98a8f42746cb75a86d1f40e9818fe2b (diff) |
Set correct pixel format. Fix limits on number of characters in the
rasops_init() call.
ok patrick@, jsg@
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/rkdrm.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/fdt/rkdrm.c b/sys/dev/fdt/rkdrm.c index 66413e8b7c1..f717db0a0cd 100644 --- a/sys/dev/fdt/rkdrm.c +++ b/sys/dev/fdt/rkdrm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rkdrm.c,v 1.5 2020/03/22 15:53:30 bmercer Exp $ */ +/* $OpenBSD: rkdrm.c,v 1.6 2020/04/08 10:54:15 kettenis Exp $ */ /* $NetBSD: rk_drm.c,v 1.3 2019/12/15 01:00:58 mrg Exp $ */ /*- * Copyright (c) 2019 Jared D. McNeill <jmcneill@invisible.ca> @@ -493,7 +493,13 @@ rkdrm_attachhook(struct device *dev) ri->ri_width = helper->fb->width; ri->ri_height = helper->fb->height; ri->ri_stride = ri->ri_width * ri->ri_depth / 8; - rasops_init(ri, helper->fb->height, helper->fb->width); + ri->ri_rnum = 8; /* ARGB8888 */ + ri->ri_rpos = 16; + ri->ri_gnum = 8; + ri->ri_gpos = 8; + ri->ri_bnum = 8; + ri->ri_bpos = 0; + rasops_init(ri, 160, 160); ri->ri_hw = sc; rkdrm_stdscreen.capabilities = ri->ri_caps; |