EDuke32 Changelog Unofficial archive

Build 8292

9 November 2019 · 27 commits by 2 authors · SVN

Builds by month 16 builds

Original log file · 20191109-8292.txt
------------------------------------------------------------------------
r8292 | ny00123 | 2019-11-09 13:49:04 -0800 (Sat, 09 Nov 2019) | 1 line

cpuid.cpp: Apply another fix for Mingw-w64 builds
------------------------------------------------------------------------
r8291 | ny00123 | 2019-11-09 13:49:02 -0800 (Sat, 09 Nov 2019) | 1 line

Use fix16_t instead of float for MV volume control. This is otherwise still doing calculations as brought into r7773 from Nuke.YKT.
------------------------------------------------------------------------
r8290 | ny00123 | 2019-11-09 13:48:59 -0800 (Sat, 09 Nov 2019) | 1 line

Add fix16_fast_trunc_mul and fix16_fast_trunc_mul_int_by_fix16
------------------------------------------------------------------------
r8289 | ny00123 | 2019-11-09 13:48:57 -0800 (Sat, 09 Nov 2019) | 1 line

MV_PlayVOC: Remove assignment of volume, leave it for MV_SetVoiceVolume
------------------------------------------------------------------------
r8288 | ny00123 | 2019-11-09 13:48:56 -0800 (Sat, 09 Nov 2019) | 1 line

Fix HAVE_FLAC=0 HAVE_VORBIS=0 builds
------------------------------------------------------------------------
r8287 | hendricks266 | 2019-11-07 20:36:46 -0800 (Thu, 07 Nov 2019) | 1 line

Fail. Note to self: Use the correct variable.
------------------------------------------------------------------------
r8286 | hendricks266 | 2019-11-07 20:23:18 -0800 (Thu, 07 Nov 2019) | 3 lines

Add GOG Linux path detection

Thanks to Jan200101 for showing how to do this.
------------------------------------------------------------------------
r8285 | hendricks266 | 2019-11-07 20:23:14 -0800 (Thu, 07 Nov 2019) | 1 line

Clean up Linux/Mac Steam path detection
------------------------------------------------------------------------
r8284 | hendricks266 | 2019-11-07 20:23:09 -0800 (Thu, 07 Nov 2019) | 1 line

Update .gitignore
------------------------------------------------------------------------
r8283 | hendricks266 | 2019-11-07 20:23:06 -0800 (Thu, 07 Nov 2019) | 1 line

SW, KenBuild: Replace strupr with Bstrupr
------------------------------------------------------------------------
r8282 | hendricks266 | 2019-11-07 20:23:02 -0800 (Thu, 07 Nov 2019) | 1 line

SW: Replace UCHAR with unsigned char
------------------------------------------------------------------------
r8281 | hendricks266 | 2019-11-07 20:22:58 -0800 (Thu, 07 Nov 2019) | 1 line

SW: Replace MAXLONG with INT32_MAX
------------------------------------------------------------------------
r8280 | hendricks266 | 2019-10-31 20:12:11 -0700 (Thu, 31 Oct 2019) | 1 line

Move audiolib's drivers.h from include to src
------------------------------------------------------------------------
r8279 | hendricks266 | 2019-10-31 20:11:49 -0700 (Thu, 31 Oct 2019) | 1 line

KenBuild: Fix unused global variables
------------------------------------------------------------------------
r8278 | hendricks266 | 2019-10-31 20:11:46 -0700 (Thu, 31 Oct 2019) | 5 lines

Replace zpl_*fence in RDTSC code

The Windows definitions of zpl_*fence contain an error: _Read/WriteBarrier apply only to the compiler, not the processor.

This commit improves the portability and correctness of the serialization taking place before RDTSC.
------------------------------------------------------------------------
r8277 | hendricks266 | 2019-10-31 20:11:42 -0700 (Thu, 31 Oct 2019) | 5 lines

Replace zpl_yield_thread in DirectSound driver

The PAUSE instruction it issues on x86 tells hyperthreading processors to deprioritize the current instruction stream and is often used for spinlocks. The Apple implementation is erroneous: a compiler-level memory fence that compiles to nothing.

Replace it with SwitchToYield, which tells the OS to context switch, as intended.
------------------------------------------------------------------------
r8276 | hendricks266 | 2019-10-31 20:11:38 -0700 (Thu, 31 Oct 2019) | 3 lines

Remove -Wno-deprecated-declarations

Passing this in for the entire build process is dangerous. If a deprecated declaration can't be fixed, use pragmas to silence it specifically.
------------------------------------------------------------------------
r8275 | hendricks266 | 2019-10-29 22:52:13 -0700 (Tue, 29 Oct 2019) | 1 line

Remove manual calls to uninitsystem because it is passed to atexit() and can cause double-frees.
------------------------------------------------------------------------
r8274 | hendricks266 | 2019-10-29 22:52:09 -0700 (Tue, 29 Oct 2019) | 3 lines

Use exit, not Bexit, if not an error termination

Bexit is ONLY for errors. Otherwise, in debug builds OSD_Printf tries to print Bexit's debug info to a closed osdlog.
------------------------------------------------------------------------
r8273 | hendricks266 | 2019-10-29 22:52:04 -0700 (Tue, 29 Oct 2019) | 11 lines

Clean up the huge portability regressions caused by the introduction of ZPL and dependent features.

This massively guts zpl.h: everything we don't use. It also improves the portability of the things we do use.
See zpl.h for why keeping the entire library is unacceptable.

Some notes:
Intel, or more specifically x86, is an architecture, not a platform.
The uses of zpl_vm_alloc functions contained a regression in that unlike the X-prefixed allocation functions, no checking of the return value was performed. Moreover, the new Bgetpagesize incorrectly used the zpl_virtual_memory_page_size API, causing the value returned to be dwAllocationGranularity instead of dwPageSize on Windows!
timerInit contained a compilation error on "MIPS".
The introduction of sysReadCPUID() broke linking on everything but x86.
Any symbol containing two successive underscores is reserved, so don't use that for include guards.
------------------------------------------------------------------------
r8272 | hendricks266 | 2019-10-29 22:51:58 -0700 (Tue, 29 Oct 2019) | 1 line

SW: Fix 3D Realms and ANM palettes
------------------------------------------------------------------------
r8271 | hendricks266 | 2019-10-29 22:51:53 -0700 (Tue, 29 Oct 2019) | 1 line

SW: Fix MIDI music
------------------------------------------------------------------------
r8270 | hendricks266 | 2019-10-29 22:51:49 -0700 (Tue, 29 Oct 2019) | 1 line

SW, KenBuild: When exiting, uninit sound before the engine
------------------------------------------------------------------------
r8269 | hendricks266 | 2019-10-29 22:51:44 -0700 (Tue, 29 Oct 2019) | 1 line

SW: Fix file loading and init sequence
------------------------------------------------------------------------
r8268 | hendricks266 | 2019-10-29 22:51:39 -0700 (Tue, 29 Oct 2019) | 1 line

Move registry reading to engine
------------------------------------------------------------------------
r8267 | hendricks266 | 2019-10-29 22:51:34 -0700 (Tue, 29 Oct 2019) | 1 line

Move VDF parsing to engine
------------------------------------------------------------------------
r8266 | hendricks266 | 2019-10-29 22:51:29 -0700 (Tue, 29 Oct 2019) | 3 lines

Add sound and music code for Ken-Build

Patch from Nuke.YKT.
------------------------------------------------------------------------
See http://svn.eduke32.com/listing.php?repname=eduke32 for more details.
Fix

cpuid.cpp: Apply another fix for Mingw-w64 builds

NY00123 9 Nov 2019, 13:49 UTC−8 r8292

Use fix16_t instead of float for MV volume control. This is otherwise still doing calculations as brought into r7773 from Nuke.YKT.

NY00123 9 Nov 2019, 13:49 UTC−8 r8291

Add fix16_fast_trunc_mul and fix16_fast_trunc_mul_int_by_fix16

NY00123 9 Nov 2019, 13:48 UTC−8 r8290
Fix

Fix HAVE_FLAC=0 HAVE_VORBIS=0 builds

NY00123 9 Nov 2019, 13:48 UTC−8 r8288

Replace zpl_*fence in RDTSC code

Evan Ramos (Hendricks266) 31 Oct 2019, 20:11 UTC−7 r8278

The Windows definitions of zpl_*fence contain an error: _Read/WriteBarrier apply only to the compiler, not the processor. This commit improves the portability and correctness of the serialization taking place before RDTSC.

Replace zpl_yield_thread in DirectSound driver

Evan Ramos (Hendricks266) 31 Oct 2019, 20:11 UTC−7 r8277

The PAUSE instruction it issues on x86 tells hyperthreading processors to deprioritize the current instruction stream and is often used for spinlocks. The Apple implementation is erroneous: a compiler-level memory fence that compiles to nothing. Replace it with SwitchToYield, which tells the OS to context switch, as intended.

Fix

Remove -Wno-deprecated-declarations

Evan Ramos (Hendricks266) 31 Oct 2019, 20:11 UTC−7 r8276

Passing this in for the entire build process is dangerous. If a deprecated declaration can't be fixed, use pragmas to silence it specifically.

Use exit, not Bexit, if not an error termination

Evan Ramos (Hendricks266) 29 Oct 2019, 22:52 UTC−7 r8274

Bexit is ONLY for errors. Otherwise, in debug builds OSD_Printf tries to print Bexit's debug info to a closed osdlog.

Fix

Clean up the huge portability regressions caused by the introduction of ZPL and dependent features.

Evan Ramos (Hendricks266) 29 Oct 2019, 22:52 UTC−7 r8273

This massively guts zpl.h: everything we don't use. It also improves the portability of the things we do use. See zpl.h for why keeping the entire library is unacceptable. Some notes: Intel, or more specifically x86, is an architecture, not a platform. The uses of zpl_vm_alloc functions contained a regression in that unlike the X-prefixed allocation functions, no checking of the return value was performed. Moreover, the new Bgetpagesize incorrectly used the zpl_virtual_memory_page_size API, causing the value returned to be dwAllocationGranularity instead of dwPageSize on Windows! timerInit contained a compilation error on "MIPS". The introduction of sysReadCPUID() broke linking on everything but x86. Any symbol containing two successive underscores is reserved, so don't use that for include guards.