Re: trouble with radeon r9 290 and eduke32

2019-09-21 Thread Jonathan Gray
On Sat, Sep 21, 2019 at 02:37:21PM +0200, Solene Rapenne wrote:
> On Sat, Sep 21, 2019 at 09:34:35PM +1000, Jonathan Gray wrote:
> > On Sat, Sep 21, 2019 at 12:29:59PM +0200, Solene Rapenne wrote:
> > > On Tue, Aug 20, 2019 at 05:40:50PM +1000, Jonathan Gray wrote:
> > > > On Tue, Aug 20, 2019 at 09:43:48AM +0300,  wrote:
> > > > > Hello,
> > > > > When I start eduke32 with LD_PRELOAD=/usr/X11R6/lib/libGL.so.17.0  so 
> > > > > it
> > > > > can run in opengl,
> > > > > on ion fury it freezes after starting the game and whole machine 
> > > > > becomes
> > > > > unresponsive for some time. I can ssh to it from my cell phone after 
> > > > > some
> > > > > time. Here is screenshot of dmesg:
> > > > > 
> > > > > https://yadi.sk/i/C6NSFEqjxuchoA
> > > > > 
> > > > > Here is dmesg after reboot: https://pastebin.com/HiHp8DUQ
> > > > > 
> > > > > Help. please.
> > > > > Thanks.
> > > > 
> > > > Why are you using LD_PRELOAD?  OpenGL should work without that.
> > > > eduke32 will dlopen libGL.so after libGL.so.1 can't be opened going by
> > > > source/glad/src/glad.c.
> > > > 
> > > > Are you using the version of eduke32 in ports?  It is quite old and
> > > > ion fury had the initial release a few days ago.
> > > > 
> > > > Can you reproduce this with any other game supported by eduke32?
> > > > I don't have ion fury but have the rest (and duke3d shareware
> > > > is installed when installing the eduke32 package).
> > > > 
> > > > Here is an update to the latest eduke32 which has some graphical
> > > > glitches on the title screen with duke3d shareware with inteldrm.
> > > > Not sure if the xmp bits are properly built for the tracker music
> > > > in ion fury.
> > > > 
> > > 
> > > With your patch I can play Ion Fury, sounds works but there is no music.
> > > 
> > >   Generating voxel models for Polymost. This may take a while...
> > >   Initializing music...
> > >   Initializing sound... 64 voices, 2 channels, 16-bit 48000 Hz
> > >   MV_PlayXMP: libxmp-lite support not included in this binary.
> > >   MV_PlayXMP: libxmp-lite support not included in this binary.
> > >   Line 1637, starttrackslot: invalid level 25 or null music for volume 0 
> > > level 25
> > >   Cache time: 939ms
> > > 
> > > The duke nukem shareware works too, I did not see any glitch.
> > > My graphic card from dmesg:
> > > 
> > > "Intel UHD Graphics 620" rev 0x07 at pci0 dev 2 function 0 not configured
> > > inteldrm0 at pci0 dev 2 function 0 "Intel UHD Graphics 620" rev 0x07
> > > 
> > > I don't know if this is expected, but I was only able to play Ion Fury 
> > > smoothly
> > > in 640x480, eduke32 was always near 98% of cpu usage, at higher 
> > > resolution it
> > > was not playable at all. This is curious given my cpu is a i7-8550U 
> > > 1.80GHz.
> > > 
> > 
> > Here is a diff to build with HAVE_XMP=1 and FURY=1.
> > 
> > This changes the binary to 'fury' and isn't intended to support duke3d
> > from what I understand, so isn't something that should be committed.
> > 
> > Building with FURY=1 disables the polymer OpenGL renderer so this may
> > help with running at higher resolutions.
> > 
> > ifeq ($(FURY),1)
> > APPNAME := Ion Fury
> > APPBASENAME := fury
> > STANDALONE := 1
> > POLYMER := 0
> > USE_LIBVPX := 0
> > NETCODE := 0
> > SIMPLE_MENU := 1
> > endif
> 
> HAVE_XMP solves the music issue on Ion Fury and duke3d still works fine
> (sound, music, game)
> 
> maybe the ports could be split into multipackages to make a
> eduke3d-duke3d and eduke3d-fury
> 
> I did retry, I already had polymer disabled, but it's slow only in
> certains areas at a certain time. Like if loading ennemies was requiring
> lot of cpu, then usage reduces.

HAVE_XMP=1 is normally the default so we can just stop disabling it.

Can you see a difference between building with FURY=1 and without?
Perhaps just the single binary is enough.

Index: Makefile
===
RCS file: /cvs/ports/games/eduke32/Makefile,v
retrieving revision 1.22
diff -u -p -r1.22 Makefile
--- Makefile14 Jul 2019 02:16:51 -  1.22
+++ Makefile21 Sep 2019 13:17:22 -
@@ -1,15 +1,14 @@
 # $OpenBSD: Makefile,v 1.22 2019/07/14 02:16:51 naddy Exp $
 
 COMMENT =  Enhanced Duke Nukem 3D engine
-RDATE =20171105
-RTAG = 6496
+RDATE =20190919
+RTAG = 8133
 DISTNAME = eduke32_src_${RDATE}-${RTAG}
 PKGNAME =  eduke32-2.0.0.${RTAG}
-REVISION = 3
 EXTRACT_SUFX = .tar.xz
 CATEGORIES =   games x11
 
-HOMEPAGE = http://www.eduke32.com/
+HOMEPAGE = https://www.eduke32.com/
 
 MAINTAINER =   Ryan Freeman 
 
@@ -37,7 +36,7 @@ WANTLIB +=gtk-x11-2.0
 
 RUN_DEPENDS =  games/duke3ddata
 
-MASTER_SITES = http://dukeworld.duke4.net/eduke32/synthesis/${RDATE}-${RTAG}/
+MASTER_SITES = https://dukeworld.duke4.net/eduke32/synthesis/${RDATE}-${RTAG}/
 
 COMPILER = base-clang ports-gcc
 
@@ -47,7 +46,6 @@ MAKE_FLAGS += PRETTY_OUTPUT=0 

Re: trouble with radeon r9 290 and eduke32

2019-09-21 Thread Solene Rapenne
On Sat, Sep 21, 2019 at 09:34:35PM +1000, Jonathan Gray wrote:
> On Sat, Sep 21, 2019 at 12:29:59PM +0200, Solene Rapenne wrote:
> > On Tue, Aug 20, 2019 at 05:40:50PM +1000, Jonathan Gray wrote:
> > > On Tue, Aug 20, 2019 at 09:43:48AM +0300,  wrote:
> > > > Hello,
> > > > When I start eduke32 with LD_PRELOAD=/usr/X11R6/lib/libGL.so.17.0  so it
> > > > can run in opengl,
> > > > on ion fury it freezes after starting the game and whole machine becomes
> > > > unresponsive for some time. I can ssh to it from my cell phone after 
> > > > some
> > > > time. Here is screenshot of dmesg:
> > > > 
> > > > https://yadi.sk/i/C6NSFEqjxuchoA
> > > > 
> > > > Here is dmesg after reboot: https://pastebin.com/HiHp8DUQ
> > > > 
> > > > Help. please.
> > > > Thanks.
> > > 
> > > Why are you using LD_PRELOAD?  OpenGL should work without that.
> > > eduke32 will dlopen libGL.so after libGL.so.1 can't be opened going by
> > > source/glad/src/glad.c.
> > > 
> > > Are you using the version of eduke32 in ports?  It is quite old and
> > > ion fury had the initial release a few days ago.
> > > 
> > > Can you reproduce this with any other game supported by eduke32?
> > > I don't have ion fury but have the rest (and duke3d shareware
> > > is installed when installing the eduke32 package).
> > > 
> > > Here is an update to the latest eduke32 which has some graphical
> > > glitches on the title screen with duke3d shareware with inteldrm.
> > > Not sure if the xmp bits are properly built for the tracker music
> > > in ion fury.
> > > 
> > 
> > With your patch I can play Ion Fury, sounds works but there is no music.
> > 
> >   Generating voxel models for Polymost. This may take a while...
> >   Initializing music...
> >   Initializing sound... 64 voices, 2 channels, 16-bit 48000 Hz
> >   MV_PlayXMP: libxmp-lite support not included in this binary.
> >   MV_PlayXMP: libxmp-lite support not included in this binary.
> >   Line 1637, starttrackslot: invalid level 25 or null music for volume 0 
> > level 25
> >   Cache time: 939ms
> > 
> > The duke nukem shareware works too, I did not see any glitch.
> > My graphic card from dmesg:
> > 
> > "Intel UHD Graphics 620" rev 0x07 at pci0 dev 2 function 0 not configured
> > inteldrm0 at pci0 dev 2 function 0 "Intel UHD Graphics 620" rev 0x07
> > 
> > I don't know if this is expected, but I was only able to play Ion Fury 
> > smoothly
> > in 640x480, eduke32 was always near 98% of cpu usage, at higher resolution 
> > it
> > was not playable at all. This is curious given my cpu is a i7-8550U 1.80GHz.
> > 
> 
> Here is a diff to build with HAVE_XMP=1 and FURY=1.
> 
> This changes the binary to 'fury' and isn't intended to support duke3d
> from what I understand, so isn't something that should be committed.
> 
> Building with FURY=1 disables the polymer OpenGL renderer so this may
> help with running at higher resolutions.
> 
> ifeq ($(FURY),1)
> APPNAME := Ion Fury
> APPBASENAME := fury
> STANDALONE := 1
> POLYMER := 0
> USE_LIBVPX := 0
> NETCODE := 0
> SIMPLE_MENU := 1
> endif

HAVE_XMP solves the music issue on Ion Fury and duke3d still works fine
(sound, music, game)

maybe the ports could be split into multipackages to make a
eduke3d-duke3d and eduke3d-fury

I did retry, I already had polymer disabled, but it's slow only in
certains areas at a certain time. Like if loading ennemies was requiring
lot of cpu, then usage reduces.



Re: trouble with radeon r9 290 and eduke32

2019-09-21 Thread Jonathan Gray
On Sat, Sep 21, 2019 at 12:29:59PM +0200, Solene Rapenne wrote:
> On Tue, Aug 20, 2019 at 05:40:50PM +1000, Jonathan Gray wrote:
> > On Tue, Aug 20, 2019 at 09:43:48AM +0300,  wrote:
> > > Hello,
> > > When I start eduke32 with LD_PRELOAD=/usr/X11R6/lib/libGL.so.17.0  so it
> > > can run in opengl,
> > > on ion fury it freezes after starting the game and whole machine becomes
> > > unresponsive for some time. I can ssh to it from my cell phone after some
> > > time. Here is screenshot of dmesg:
> > > 
> > > https://yadi.sk/i/C6NSFEqjxuchoA
> > > 
> > > Here is dmesg after reboot: https://pastebin.com/HiHp8DUQ
> > > 
> > > Help. please.
> > > Thanks.
> > 
> > Why are you using LD_PRELOAD?  OpenGL should work without that.
> > eduke32 will dlopen libGL.so after libGL.so.1 can't be opened going by
> > source/glad/src/glad.c.
> > 
> > Are you using the version of eduke32 in ports?  It is quite old and
> > ion fury had the initial release a few days ago.
> > 
> > Can you reproduce this with any other game supported by eduke32?
> > I don't have ion fury but have the rest (and duke3d shareware
> > is installed when installing the eduke32 package).
> > 
> > Here is an update to the latest eduke32 which has some graphical
> > glitches on the title screen with duke3d shareware with inteldrm.
> > Not sure if the xmp bits are properly built for the tracker music
> > in ion fury.
> > 
> 
> With your patch I can play Ion Fury, sounds works but there is no music.
> 
>   Generating voxel models for Polymost. This may take a while...
>   Initializing music...
>   Initializing sound... 64 voices, 2 channels, 16-bit 48000 Hz
>   MV_PlayXMP: libxmp-lite support not included in this binary.
>   MV_PlayXMP: libxmp-lite support not included in this binary.
>   Line 1637, starttrackslot: invalid level 25 or null music for volume 0 
> level 25
>   Cache time: 939ms
> 
> The duke nukem shareware works too, I did not see any glitch.
> My graphic card from dmesg:
> 
> "Intel UHD Graphics 620" rev 0x07 at pci0 dev 2 function 0 not configured
> inteldrm0 at pci0 dev 2 function 0 "Intel UHD Graphics 620" rev 0x07
> 
> I don't know if this is expected, but I was only able to play Ion Fury 
> smoothly
> in 640x480, eduke32 was always near 98% of cpu usage, at higher resolution it
> was not playable at all. This is curious given my cpu is a i7-8550U 1.80GHz.
> 

Here is a diff to build with HAVE_XMP=1 and FURY=1.

This changes the binary to 'fury' and isn't intended to support duke3d
from what I understand, so isn't something that should be committed.

Building with FURY=1 disables the polymer OpenGL renderer so this may
help with running at higher resolutions.

ifeq ($(FURY),1)
APPNAME := Ion Fury
APPBASENAME := fury
STANDALONE := 1
POLYMER := 0
USE_LIBVPX := 0
NETCODE := 0
SIMPLE_MENU := 1
endif

Index: Makefile
===
RCS file: /cvs/ports/games/eduke32/Makefile,v
retrieving revision 1.22
diff -u -p -r1.22 Makefile
--- Makefile14 Jul 2019 02:16:51 -  1.22
+++ Makefile21 Sep 2019 11:25:53 -
@@ -1,15 +1,14 @@
 # $OpenBSD: Makefile,v 1.22 2019/07/14 02:16:51 naddy Exp $
 
 COMMENT =  Enhanced Duke Nukem 3D engine
-RDATE =20171105
-RTAG = 6496
+RDATE =20190919
+RTAG = 8133
 DISTNAME = eduke32_src_${RDATE}-${RTAG}
 PKGNAME =  eduke32-2.0.0.${RTAG}
-REVISION = 3
 EXTRACT_SUFX = .tar.xz
 CATEGORIES =   games x11
 
-HOMEPAGE = http://www.eduke32.com/
+HOMEPAGE = https://www.eduke32.com/
 
 MAINTAINER =   Ryan Freeman 
 
@@ -35,9 +34,9 @@ LIB_DEPENDS = archivers/lz4 \
 LIB_DEPENDS += x11/gtk+2
 WANTLIB += gtk-x11-2.0
 
-RUN_DEPENDS =  games/duke3ddata
+#RUN_DEPENDS = games/duke3ddata
 
-MASTER_SITES = http://dukeworld.duke4.net/eduke32/synthesis/${RDATE}-${RTAG}/
+MASTER_SITES = https://dukeworld.duke4.net/eduke32/synthesis/${RDATE}-${RTAG}/
 
 COMPILER = base-clang ports-gcc
 
@@ -47,8 +46,9 @@ MAKE_FLAGS += PRETTY_OUTPUT=0 \
CXX="${CXX}" \
STRIP=true \
PACKAGE_REPOSITORY=1 \
-   HAVE_XMP=0 \
-   NOASM=1
+   HAVE_XMP=1 \
+   NOASM=1 \
+   FURY=1
 MAKE_FILE =GNUmakefile
 USE_GMAKE =Yes
 NO_TEST =  Yes
@@ -68,7 +68,7 @@ post-extract:
rm ${WRKSRC}/source/build/include/lz4.h ${WRKSRC}/source/build/src/lz4.c
 
 do-install:
-   ${INSTALL_PROGRAM} ${WRKBUILD}/eduke32 ${PREFIX}/bin
+   ${INSTALL_PROGRAM} ${WRKBUILD}/fury ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKBUILD}/mapster32 ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/duke3d
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/eduke32
Index: distinfo
===
RCS file: /cvs/ports/games/eduke32/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo22 Nov 2017 03:43:46 -   

Re: trouble with radeon r9 290 and eduke32

2019-09-21 Thread Solene Rapenne
On Tue, Aug 20, 2019 at 05:40:50PM +1000, Jonathan Gray wrote:
> On Tue, Aug 20, 2019 at 09:43:48AM +0300,  wrote:
> > Hello,
> > When I start eduke32 with LD_PRELOAD=/usr/X11R6/lib/libGL.so.17.0  so it
> > can run in opengl,
> > on ion fury it freezes after starting the game and whole machine becomes
> > unresponsive for some time. I can ssh to it from my cell phone after some
> > time. Here is screenshot of dmesg:
> > 
> > https://yadi.sk/i/C6NSFEqjxuchoA
> > 
> > Here is dmesg after reboot: https://pastebin.com/HiHp8DUQ
> > 
> > Help. please.
> > Thanks.
> 
> Why are you using LD_PRELOAD?  OpenGL should work without that.
> eduke32 will dlopen libGL.so after libGL.so.1 can't be opened going by
> source/glad/src/glad.c.
> 
> Are you using the version of eduke32 in ports?  It is quite old and
> ion fury had the initial release a few days ago.
> 
> Can you reproduce this with any other game supported by eduke32?
> I don't have ion fury but have the rest (and duke3d shareware
> is installed when installing the eduke32 package).
> 
> Here is an update to the latest eduke32 which has some graphical
> glitches on the title screen with duke3d shareware with inteldrm.
> Not sure if the xmp bits are properly built for the tracker music
> in ion fury.
> 

With your patch I can play Ion Fury, sounds works but there is no music.

  Generating voxel models for Polymost. This may take a while...
  Initializing music...
  Initializing sound... 64 voices, 2 channels, 16-bit 48000 Hz
  MV_PlayXMP: libxmp-lite support not included in this binary.
  MV_PlayXMP: libxmp-lite support not included in this binary.
  Line 1637, starttrackslot: invalid level 25 or null music for volume 0 level 
25
  Cache time: 939ms

The duke nukem shareware works too, I did not see any glitch.
My graphic card from dmesg:

"Intel UHD Graphics 620" rev 0x07 at pci0 dev 2 function 0 not configured
inteldrm0 at pci0 dev 2 function 0 "Intel UHD Graphics 620" rev 0x07

I don't know if this is expected, but I was only able to play Ion Fury smoothly
in 640x480, eduke32 was always near 98% of cpu usage, at higher resolution it
was not playable at all. This is curious given my cpu is a i7-8550U 1.80GHz.



Re: trouble with radeon r9 290 and eduke32

2019-08-20 Thread Кирилл
Problem stays even after your patch and unset LD_PRELOAD

On Tue, Aug 20, 2019 at 10:40 AM Jonathan Gray  wrote:

> On Tue, Aug 20, 2019 at 09:43:48AM +0300,  wrote:
> > Hello,
> > When I start eduke32 with LD_PRELOAD=/usr/X11R6/lib/libGL.so.17.0  so it
> > can run in opengl,
> > on ion fury it freezes after starting the game and whole machine becomes
> > unresponsive for some time. I can ssh to it from my cell phone after some
> > time. Here is screenshot of dmesg:
> >
> > https://yadi.sk/i/C6NSFEqjxuchoA
> >
> > Here is dmesg after reboot: https://pastebin.com/HiHp8DUQ
> >
> > Help. please.
> > Thanks.
>
> Why are you using LD_PRELOAD?  OpenGL should work without that.
> eduke32 will dlopen libGL.so after libGL.so.1 can't be opened going by
> source/glad/src/glad.c.
>
> Are you using the version of eduke32 in ports?  It is quite old and
> ion fury had the initial release a few days ago.
>
> Can you reproduce this with any other game supported by eduke32?
> I don't have ion fury but have the rest (and duke3d shareware
> is installed when installing the eduke32 package).
>
> Here is an update to the latest eduke32 which has some graphical
> glitches on the title screen with duke3d shareware with inteldrm.
> Not sure if the xmp bits are properly built for the tracker music
> in ion fury.
>
> Index: Makefile
> ===
> RCS file: /cvs/ports/games/eduke32/Makefile,v
> retrieving revision 1.22
> diff -u -p -r1.22 Makefile
> --- Makefile14 Jul 2019 02:16:51 -  1.22
> +++ Makefile20 Aug 2019 07:03:43 -
> @@ -1,15 +1,14 @@
>  # $OpenBSD: Makefile,v 1.22 2019/07/14 02:16:51 naddy Exp $
>
>  COMMENT =  Enhanced Duke Nukem 3D engine
> -RDATE =20171105
> -RTAG = 6496
> +RDATE =20190818
> +RTAG = 8040
>  DISTNAME = eduke32_src_${RDATE}-${RTAG}
>  PKGNAME =  eduke32-2.0.0.${RTAG}
> -REVISION = 3
>  EXTRACT_SUFX = .tar.xz
>  CATEGORIES =   games x11
>
> -HOMEPAGE = http://www.eduke32.com/
> +HOMEPAGE = https://www.eduke32.com/
>
>  MAINTAINER =   Ryan Freeman 
>
> @@ -37,7 +36,7 @@ WANTLIB +=gtk-x11-2.0
>
>  RUN_DEPENDS =  games/duke3ddata
>
> -MASTER_SITES =
> http://dukeworld.duke4.net/eduke32/synthesis/${RDATE}-${RTAG}/
> +MASTER_SITES =
> https://dukeworld.duke4.net/eduke32/synthesis/${RDATE}-${RTAG}/
>
>  COMPILER = base-clang ports-gcc
>
> Index: distinfo
> ===
> RCS file: /cvs/ports/games/eduke32/distinfo,v
> retrieving revision 1.4
> diff -u -p -r1.4 distinfo
> --- distinfo22 Nov 2017 03:43:46 -  1.4
> +++ distinfo20 Aug 2019 06:29:45 -
> @@ -1,2 +1,2 @@
> -SHA256 (eduke32_src_20171105-6496.tar.xz) =
> 1+MCe1npolXkOvGK6Jtk+THxlaIL9kwoTLKYpdkMPrI=
> -SIZE (eduke32_src_20171105-6496.tar.xz) = 14351444
> +SHA256 (eduke32_src_20190818-8040.tar.xz) =
> NO62FnQvdvlKWlAwdVctrBboDeAFIAU8VRmS9ik0i0k=
> +SIZE (eduke32_src_20190818-8040.tar.xz) = 15922772
> Index: patches/patch-Common_mak
> ===
> RCS file: /cvs/ports/games/eduke32/patches/patch-Common_mak,v
> retrieving revision 1.1
> diff -u -p -r1.1 patch-Common_mak
> --- patches/patch-Common_mak22 Nov 2017 03:43:46 -  1.1
> +++ patches/patch-Common_mak20 Aug 2019 06:36:43 -
> @@ -3,7 +3,7 @@ $OpenBSD: patch-Common_mak,v 1.1 2017/11
>  Index: Common.mak
>  --- Common.mak.orig
>  +++ Common.mak
> -@@ -638,7 +638,7 @@ ifeq (0,$(RELEASE))
> +@@ -700,7 +700,7 @@ ifeq (0,$(RELEASE))
>   F_NO_STACK_PROTECTOR :=
>   else
>   ifeq (0,$(CLANG))
> @@ -11,4 +11,4 @@ Index: Common.mak
>  +#COMMONFLAGS += -funswitch-loops
>   endif
>
> - ifeq (0,$(DEBUGANYWAY))
> + ifeq (0,$(FORCEDEBUG))
> Index: patches/patch-GNUmakefile
> ===
> RCS file: /cvs/ports/games/eduke32/patches/patch-GNUmakefile,v
> retrieving revision 1.2
> diff -u -p -r1.2 patch-GNUmakefile
> --- patches/patch-GNUmakefile   17 Jul 2018 07:56:44 -  1.2
> +++ patches/patch-GNUmakefile   20 Aug 2019 06:36:55 -
> @@ -3,7 +3,7 @@ $OpenBSD: patch-GNUmakefile,v 1.2 2018/0
>  Index: GNUmakefile
>  --- GNUmakefile.orig
>  +++ GNUmakefile
> -@@ -161,7 +161,6 @@ engine_objs := \
> +@@ -227,7 +227,6 @@ engine_objs := \
>   textfont.cpp \
>   smalltextfont.cpp \
>   kplib.cpp \
> @@ -11,7 +11,7 @@ Index: GNUmakefile
>   osd.cpp \
>   pragmas.cpp \
>   scriptfile.cpp \
> -@@ -581,7 +580,7 @@ ifeq ($(SUBPLATFORM),LINUX)
> +@@ -655,7 +654,7 @@ ifeq ($(SUBPLATFORM),LINUX)
>   endif
>
>   ifeq ($(PLATFORM),BSD)
> @@ -20,12 +20,12 @@ Index: GNUmakefile
>   endif
>
>   ifeq ($(PLATFORM),DARWIN)
> -@@ -755,7 +754,7 @@ endif
> +@@ -829,7 +828,7 @@ endif
>
>    Final setup
>
> --COMPILERFLAGS += -I$(engine_inc) -I$(mact_inc) -I$(audiolib_inc)
> -I$(enet_inc)
> -+COMPILERFLAGS := 

Re: trouble with radeon r9 290 and eduke32

2019-08-20 Thread Jonathan Gray
On Tue, Aug 20, 2019 at 09:43:48AM +0300,  wrote:
> Hello,
> When I start eduke32 with LD_PRELOAD=/usr/X11R6/lib/libGL.so.17.0  so it
> can run in opengl,
> on ion fury it freezes after starting the game and whole machine becomes
> unresponsive for some time. I can ssh to it from my cell phone after some
> time. Here is screenshot of dmesg:
> 
> https://yadi.sk/i/C6NSFEqjxuchoA
> 
> Here is dmesg after reboot: https://pastebin.com/HiHp8DUQ
> 
> Help. please.
> Thanks.

Why are you using LD_PRELOAD?  OpenGL should work without that.
eduke32 will dlopen libGL.so after libGL.so.1 can't be opened going by
source/glad/src/glad.c.

Are you using the version of eduke32 in ports?  It is quite old and
ion fury had the initial release a few days ago.

Can you reproduce this with any other game supported by eduke32?
I don't have ion fury but have the rest (and duke3d shareware
is installed when installing the eduke32 package).

Here is an update to the latest eduke32 which has some graphical
glitches on the title screen with duke3d shareware with inteldrm.
Not sure if the xmp bits are properly built for the tracker music
in ion fury.

Index: Makefile
===
RCS file: /cvs/ports/games/eduke32/Makefile,v
retrieving revision 1.22
diff -u -p -r1.22 Makefile
--- Makefile14 Jul 2019 02:16:51 -  1.22
+++ Makefile20 Aug 2019 07:03:43 -
@@ -1,15 +1,14 @@
 # $OpenBSD: Makefile,v 1.22 2019/07/14 02:16:51 naddy Exp $
 
 COMMENT =  Enhanced Duke Nukem 3D engine
-RDATE =20171105
-RTAG = 6496
+RDATE =20190818
+RTAG = 8040
 DISTNAME = eduke32_src_${RDATE}-${RTAG}
 PKGNAME =  eduke32-2.0.0.${RTAG}
-REVISION = 3
 EXTRACT_SUFX = .tar.xz
 CATEGORIES =   games x11
 
-HOMEPAGE = http://www.eduke32.com/
+HOMEPAGE = https://www.eduke32.com/
 
 MAINTAINER =   Ryan Freeman 
 
@@ -37,7 +36,7 @@ WANTLIB +=gtk-x11-2.0
 
 RUN_DEPENDS =  games/duke3ddata
 
-MASTER_SITES = http://dukeworld.duke4.net/eduke32/synthesis/${RDATE}-${RTAG}/
+MASTER_SITES = https://dukeworld.duke4.net/eduke32/synthesis/${RDATE}-${RTAG}/
 
 COMPILER = base-clang ports-gcc
 
Index: distinfo
===
RCS file: /cvs/ports/games/eduke32/distinfo,v
retrieving revision 1.4
diff -u -p -r1.4 distinfo
--- distinfo22 Nov 2017 03:43:46 -  1.4
+++ distinfo20 Aug 2019 06:29:45 -
@@ -1,2 +1,2 @@
-SHA256 (eduke32_src_20171105-6496.tar.xz) = 
1+MCe1npolXkOvGK6Jtk+THxlaIL9kwoTLKYpdkMPrI=
-SIZE (eduke32_src_20171105-6496.tar.xz) = 14351444
+SHA256 (eduke32_src_20190818-8040.tar.xz) = 
NO62FnQvdvlKWlAwdVctrBboDeAFIAU8VRmS9ik0i0k=
+SIZE (eduke32_src_20190818-8040.tar.xz) = 15922772
Index: patches/patch-Common_mak
===
RCS file: /cvs/ports/games/eduke32/patches/patch-Common_mak,v
retrieving revision 1.1
diff -u -p -r1.1 patch-Common_mak
--- patches/patch-Common_mak22 Nov 2017 03:43:46 -  1.1
+++ patches/patch-Common_mak20 Aug 2019 06:36:43 -
@@ -3,7 +3,7 @@ $OpenBSD: patch-Common_mak,v 1.1 2017/11
 Index: Common.mak
 --- Common.mak.orig
 +++ Common.mak
-@@ -638,7 +638,7 @@ ifeq (0,$(RELEASE))
+@@ -700,7 +700,7 @@ ifeq (0,$(RELEASE))
  F_NO_STACK_PROTECTOR :=
  else
  ifeq (0,$(CLANG))
@@ -11,4 +11,4 @@ Index: Common.mak
 +#COMMONFLAGS += -funswitch-loops
  endif
  
- ifeq (0,$(DEBUGANYWAY))
+ ifeq (0,$(FORCEDEBUG))
Index: patches/patch-GNUmakefile
===
RCS file: /cvs/ports/games/eduke32/patches/patch-GNUmakefile,v
retrieving revision 1.2
diff -u -p -r1.2 patch-GNUmakefile
--- patches/patch-GNUmakefile   17 Jul 2018 07:56:44 -  1.2
+++ patches/patch-GNUmakefile   20 Aug 2019 06:36:55 -
@@ -3,7 +3,7 @@ $OpenBSD: patch-GNUmakefile,v 1.2 2018/0
 Index: GNUmakefile
 --- GNUmakefile.orig
 +++ GNUmakefile
-@@ -161,7 +161,6 @@ engine_objs := \
+@@ -227,7 +227,6 @@ engine_objs := \
  textfont.cpp \
  smalltextfont.cpp \
  kplib.cpp \
@@ -11,7 +11,7 @@ Index: GNUmakefile
  osd.cpp \
  pragmas.cpp \
  scriptfile.cpp \
-@@ -581,7 +580,7 @@ ifeq ($(SUBPLATFORM),LINUX)
+@@ -655,7 +654,7 @@ ifeq ($(SUBPLATFORM),LINUX)
  endif
  
  ifeq ($(PLATFORM),BSD)
@@ -20,12 +20,12 @@ Index: GNUmakefile
  endif
  
  ifeq ($(PLATFORM),DARWIN)
-@@ -755,7 +754,7 @@ endif
+@@ -829,7 +828,7 @@ endif
  
   Final setup
  
--COMPILERFLAGS += -I$(engine_inc) -I$(mact_inc) -I$(audiolib_inc) -I$(enet_inc)
-+COMPILERFLAGS := -I$(engine_inc) -I$(mact_inc) -I$(audiolib_inc) 
-I$(enet_inc) $(COMPILERFLAGS)
- 
- 
- # Recipes
+-COMPILERFLAGS += -I$(engine_inc) -I$(mact_inc) -I$(audiolib_inc) 
-I$(enet_inc) -I$(glad_inc) -MP -MMD
++COMPILERFLAGS := -I$(engine_inc) -I$(mact_inc) -I$(audiolib_inc) 
-I$(enet_inc) -I$(glad_inc) -MP -MMD $(COMPILERFLAGS)
+ ifneq (0,$(USE_PHYSFS))

trouble with radeon r9 290 and eduke32

2019-08-20 Thread Кирилл
Hello,
When I start eduke32 with LD_PRELOAD=/usr/X11R6/lib/libGL.so.17.0  so it
can run in opengl,
on ion fury it freezes after starting the game and whole machine becomes
unresponsive for some time. I can ssh to it from my cell phone after some
time. Here is screenshot of dmesg:

https://yadi.sk/i/C6NSFEqjxuchoA

Here is dmesg after reboot: https://pastebin.com/HiHp8DUQ

Help. please.
Thanks.