diff options
author | Frederic Cambus <fcambus@cvs.openbsd.org> | 2017-01-08 12:11:55 +0000 |
---|---|---|
committer | Frederic Cambus <fcambus@cvs.openbsd.org> | 2017-01-08 12:11:55 +0000 |
commit | 8d2498e68d7ad2f2bc3d22c1853865d800c12e69 (patch) | |
tree | 00066e25fac54a5affac312aa0e0d2ec7d89000e | |
parent | 21de15f773be76ce845907d8c4e8e82753cc4b0e (diff) |
Display color depth alongside resolution when attaching inteldrm and
radeondrm, using the same scheme as efifb(4).
OK mpi@, visa@, kettenis@
-rw-r--r-- | sys/dev/pci/drm/i915/i915_drv.c | 6 | ||||
-rw-r--r-- | sys/dev/pci/drm/radeon/radeon_kms.c | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/sys/dev/pci/drm/i915/i915_drv.c b/sys/dev/pci/drm/i915/i915_drv.c index 7feafde541e..2abba0a3579 100644 --- a/sys/dev/pci/drm/i915/i915_drv.c +++ b/sys/dev/pci/drm/i915/i915_drv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i915_drv.c,v 1.100 2016/04/08 08:27:53 kettenis Exp $ */ +/* $OpenBSD: i915_drv.c,v 1.101 2017/01/08 12:11:54 fcambus Exp $ */ /* * Copyright (c) 2008-2009 Owain G. Ainsworth <oga@openbsd.org> * @@ -1508,8 +1508,8 @@ inteldrm_attach(struct device *parent, struct device *self, void *aux) efifb_cndetach(); #endif - printf("%s: %dx%d\n", dev_priv->sc_dev.dv_xname, - ri->ri_width, ri->ri_height); + printf("%s: %dx%d, %dbpp\n", dev_priv->sc_dev.dv_xname, + ri->ri_width, ri->ri_height, ri->ri_depth); intel_fbdev_restore_mode(dev); diff --git a/sys/dev/pci/drm/radeon/radeon_kms.c b/sys/dev/pci/drm/radeon/radeon_kms.c index 45581befc91..89d734311a7 100644 --- a/sys/dev/pci/drm/radeon/radeon_kms.c +++ b/sys/dev/pci/drm/radeon/radeon_kms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: radeon_kms.c,v 1.48 2016/04/08 08:27:53 kettenis Exp $ */ +/* $OpenBSD: radeon_kms.c,v 1.49 2017/01/08 12:11:54 fcambus Exp $ */ /* * Copyright 2008 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat Inc. @@ -769,7 +769,8 @@ radeondrm_attachhook(struct device *self) radeon_vga_set_state(rdev, false); pci_disable_legacy_vga(&rdev->dev); - printf("%s: %dx%d\n", rdev->dev.dv_xname, ri->ri_width, ri->ri_height); + printf("%s: %dx%d, %dbpp\n", rdev->dev.dv_xname, + ri->ri_width, ri->ri_height, ri->ri_depth); config_found_sm(&rdev->dev, &aa, wsemuldisplaydevprint, wsemuldisplaydevsubmatch); |