Index: head/x11-drivers/Makefile =================================================================== --- head/x11-drivers/Makefile (revision 433829) +++ head/x11-drivers/Makefile (revision 433830) @@ -1,54 +1,55 @@ # $FreeBSD$ # COMMENT = X11 drivers SUBDIR += xf86-input-acecad SUBDIR += xf86-input-egalax SUBDIR += xf86-input-elographics SUBDIR += xf86-input-evdev SUBDIR += xf86-input-fpit SUBDIR += xf86-input-hyperpen SUBDIR += xf86-input-joystick SUBDIR += xf86-input-keyboard SUBDIR += xf86-input-mouse SUBDIR += xf86-input-mutouch SUBDIR += xf86-input-penmount SUBDIR += xf86-input-synaptics SUBDIR += xf86-input-vmmouse SUBDIR += xf86-input-void SUBDIR += xf86-input-wacom + SUBDIR += xf86-video-amdgpu SUBDIR += xf86-video-apm SUBDIR += xf86-video-ark SUBDIR += xf86-video-ast SUBDIR += xf86-video-ati SUBDIR += xf86-video-chips SUBDIR += xf86-video-cirrus SUBDIR += xf86-video-dummy SUBDIR += xf86-video-glint SUBDIR += xf86-video-i128 SUBDIR += xf86-video-i740 SUBDIR += xf86-video-intel SUBDIR += xf86-video-mach64 SUBDIR += xf86-video-mga SUBDIR += xf86-video-neomagic SUBDIR += xf86-video-nv SUBDIR += xf86-video-openchrome SUBDIR += xf86-video-r128 SUBDIR += xf86-video-rendition SUBDIR += xf86-video-s3 SUBDIR += xf86-video-s3virge SUBDIR += xf86-video-savage SUBDIR += xf86-video-scfb SUBDIR += xf86-video-siliconmotion SUBDIR += xf86-video-sis SUBDIR += xf86-video-sunffb SUBDIR += xf86-video-tdfx SUBDIR += xf86-video-trident SUBDIR += xf86-video-tseng SUBDIR += xf86-video-vesa SUBDIR += xf86-video-vmware SUBDIR += xf86-video-voodoo SUBDIR += xorg-drivers .include Index: head/x11-drivers/xf86-video-amdgpu/Makefile =================================================================== --- head/x11-drivers/xf86-video-amdgpu/Makefile (nonexistent) +++ head/x11-drivers/xf86-video-amdgpu/Makefile (revision 433830) @@ -0,0 +1,35 @@ +# $FreeBSD$ + +# this port is for future amdgpu kernel support testing. + +PORTNAME= xf86-video-amdgpu +PORTVERSION= 1.2.0 +CATEGORIES= x11-drivers + +MAINTAINER= x11@FreeBSD.org +COMMENT= X.Org amdgpu display driver + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libdrm_amdgpu.so:graphics/libdrm + +USE_GL= gbm +XORG_CAT= driver +INSTALL_TARGET= install-strip +# No amdgpu kernel driver on non-x86 and PC98. +ONLY_FOR_ARCHS= i386 amd64 + +CONFIGURE_ARGS+=--disable-udev + +.include + +.if (${OSVERSION} < 1200019) +IGNORE= not support on 11.x or older, no kernel support +.endif + +PLIST_FILES= lib/xorg/modules/drivers/amdgpu_drv.so \ + man/man4/amdgpu.4x.gz \ + share/X11/xorg.conf.d/10-amdgpu.conf + +.include Property changes on: head/x11-drivers/xf86-video-amdgpu/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-drivers/xf86-video-amdgpu/distinfo =================================================================== --- head/x11-drivers/xf86-video-amdgpu/distinfo (nonexistent) +++ head/x11-drivers/xf86-video-amdgpu/distinfo (revision 433830) @@ -0,0 +1,3 @@ +TIMESTAMP = 1479963082 +SHA256 (xorg/driver/xf86-video-amdgpu-1.2.0.tar.bz2) = 275b1aac5f127f55ba3d7480a1df89eace1d02650e24e46908067fc875e76c8f +SIZE (xorg/driver/xf86-video-amdgpu-1.2.0.tar.bz2) = 388108 Property changes on: head/x11-drivers/xf86-video-amdgpu/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-drivers/xf86-video-amdgpu/files/patch-src_amdgpu__drm__queue.c =================================================================== --- head/x11-drivers/xf86-video-amdgpu/files/patch-src_amdgpu__drm__queue.c (nonexistent) +++ head/x11-drivers/xf86-video-amdgpu/files/patch-src_amdgpu__drm__queue.c (revision 433830) @@ -0,0 +1,47 @@ +--- src/amdgpu_drm_queue.c.orig 2016-09-20 08:19:15 UTC ++++ src/amdgpu_drm_queue.c +@@ -61,7 +61,7 @@ amdgpu_drm_queue_handler(int fd, unsigne + unsigned int usec, void *user_ptr) + { + uintptr_t seq = (uintptr_t)user_ptr; +- struct amdgpu_drm_queue_entry *e, *tmp; ++ struct amdgpu_drm_queue_entry *e = NULL, *tmp; + + xorg_list_for_each_entry_safe(e, tmp, &amdgpu_drm_queue, list) { + if (e->seq == seq) { +@@ -133,7 +133,7 @@ amdgpu_drm_abort_one(struct amdgpu_drm_q + void + amdgpu_drm_abort_client(ClientPtr client) + { +- struct amdgpu_drm_queue_entry *e; ++ struct amdgpu_drm_queue_entry *e = NULL; + + xorg_list_for_each_entry(e, &amdgpu_drm_queue, list) { + if (e->client == client) +@@ -147,7 +147,7 @@ amdgpu_drm_abort_client(ClientPtr client + void + amdgpu_drm_abort_entry(uintptr_t seq) + { +- struct amdgpu_drm_queue_entry *e, *tmp; ++ struct amdgpu_drm_queue_entry *e = NULL, *tmp; + + xorg_list_for_each_entry_safe(e, tmp, &amdgpu_drm_queue, list) { + if (e->seq == seq) { +@@ -163,7 +163,7 @@ amdgpu_drm_abort_entry(uintptr_t seq) + void + amdgpu_drm_abort_id(uint64_t id) + { +- struct amdgpu_drm_queue_entry *e, *tmp; ++ struct amdgpu_drm_queue_entry *e = NULL, *tmp; + + xorg_list_for_each_entry_safe(e, tmp, &amdgpu_drm_queue, list) { + if (e->id == id) { +@@ -191,7 +191,7 @@ amdgpu_drm_queue_init() + void + amdgpu_drm_queue_close(ScrnInfoPtr scrn) + { +- struct amdgpu_drm_queue_entry *e, *tmp; ++ struct amdgpu_drm_queue_entry *e = NULL, *tmp; + + xorg_list_for_each_entry_safe(e, tmp, &amdgpu_drm_queue, list) { + if (e->crtc->scrn == scrn) Property changes on: head/x11-drivers/xf86-video-amdgpu/files/patch-src_amdgpu__drm__queue.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-drivers/xf86-video-amdgpu/files/patch-src_amdgpu__kms.c =================================================================== --- head/x11-drivers/xf86-video-amdgpu/files/patch-src_amdgpu__kms.c (nonexistent) +++ head/x11-drivers/xf86-video-amdgpu/files/patch-src_amdgpu__kms.c (revision 433830) @@ -0,0 +1,11 @@ +--- src/amdgpu_kms.c.orig 2016-11-17 06:07:48 UTC ++++ src/amdgpu_kms.c +@@ -723,7 +723,7 @@ amdgpu_dirty_update(ScrnInfoPtr scrn) + { + AMDGPUInfoPtr info = AMDGPUPTR(scrn); + ScreenPtr screen = scrn->pScreen; +- PixmapDirtyUpdatePtr ent; ++ PixmapDirtyUpdatePtr ent = NULL; + RegionPtr region; + + xorg_list_for_each_entry(ent, &screen->pixmap_dirty_list, ent) { Property changes on: head/x11-drivers/xf86-video-amdgpu/files/patch-src_amdgpu__kms.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/x11-drivers/xf86-video-amdgpu/pkg-descr =================================================================== --- head/x11-drivers/xf86-video-amdgpu/pkg-descr (nonexistent) +++ head/x11-drivers/xf86-video-amdgpu/pkg-descr (revision 433830) @@ -0,0 +1,9 @@ +This package contains the X.Org xf86-video-amdgpu driver. + +The amdgpu driver supports AMD Radeon chipsets: OLAND, HAINAN, TAHITI, PITCAIRN, +VERDE, BONAIRE, KABINI, MULLINS, KAVERI, HAWAII, TOPAZ, TONGA, CARRIZO, FIJI, +STONEY, POLARIS11, POLARIS10 +This driver relies on amdgpu KMS functionality currently only provided by the +FreeBSDDesktop kernel fork. Once support is stable, it will be merged to HEAD. + +WWW: https://www.x.org/wiki/RadeonFeature/ Property changes on: head/x11-drivers/xf86-video-amdgpu/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property