From 8d2498e68d7ad2f2bc3d22c1853865d800c12e69 Mon Sep 17 00:00:00 2001 From: Frederic Cambus Date: Sun, 8 Jan 2017 12:11:55 +0000 Subject: Display color depth alongside resolution when attaching inteldrm and radeondrm, using the same scheme as efifb(4). OK mpi@, visa@, kettenis@ --- sys/dev/pci/drm/i915/i915_drv.c | 6 +++--- sys/dev/pci/drm/radeon/radeon_kms.c | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'sys/dev/pci') 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 * @@ -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); -- cgit v1.2.3