Make X work with radeondrm(4) hardware on loongson.

OK jsg@
This commit is contained in:
visa 2017-05-21 13:18:29 +00:00
parent e1b18e589f
commit 55a8e552e5
3 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.69 2017/02/03 04:29:26 jsg Exp $
# $OpenBSD: Makefile,v 1.70 2017/05/21 13:18:29 visa Exp $
INPUT_DRV_DEFAULT= \
xf86-input-keyboard \
@ -73,7 +73,7 @@ VIDEO_DRV_i386= \
VIDEO_DRV_landisk=
VIDEO_DRV_loongson= \
xf86-video-wsfb
xf86-video-ati xf86-video-wsfb
VIDEO_DRV_luna88k= \
xf86-video-wsfb

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile.bsd-wrapper,v 1.8 2017/01/21 11:23:09 stsp Exp $
# $OpenBSD: Makefile.bsd-wrapper,v 1.9 2017/05/21 13:18:29 visa Exp $
.include <bsd.own.mk>
@ -13,7 +13,8 @@ DRI_DRIVERS=swrast,radeon,r200,i915,i965
GALLIUM_DRIVERS=swrast,r300,r600
.endif
.if ${MACHINE} == macppc || ${MACHINE} == sparc64
.if ${MACHINE} == loongson || ${MACHINE} == macppc || \
${MACHINE} == sparc64
DRI_DRIVERS=swrast,radeon,r200
GALLIUM_DRIVERS=swrast,r300,r600
.endif

View File

@ -53,6 +53,7 @@ xf86OSInitVidMem(VidMemInfoPtr pVidMem)
_X_EXPORT void
xf86PrivilegedInit(void)
{
pci_system_init();
xf86OpenConsole();
}
#endif