Skip to content

avm1: Xmlsocket connect null fix - #23931

Merged
SuchAFuriousDeath merged 2 commits into
ruffle-rs:masterfrom
SuchAFuriousDeath:xmlsocket-connect-null-fix
Jun 9, 2026
Merged

SuchAFuriousDeath merged 2 commits into
ruffle-rs:masterfrom
SuchAFuriousDeath:xmlsocket-connect-null-fix

Conversation

@SuchAFuriousDeath

Copy link
Copy Markdown
Collaborator

Description

Fixes #22995.

A rebased version of #23000 with tests included. Authorship retained.

Testing

Tests included ✔️

Checklist

  • I, a human, have self-reviewed this PR and fully understand the changes within.
  • I have made or updated tests where possible.
  • All of my commits are properly scoped, compile successfully, and pass all tests.
  • This PR does not make sense to split up into smaller PRs.
  • An LLM was involved in the authoring of this code.

adrian17 and others added 2 commits June 9, 2026 12:26
Probes `XMLSocket.connect()` with no argument, `null`, `undefined`, and
an explicit host, checking that the navigator receives the right host
and port for each.
@SuchAFuriousDeath
SuchAFuriousDeath merged commit cf56e93 into ruffle-rs:master Jun 9, 2026
25 of 26 checks passed
@SuchAFuriousDeath
SuchAFuriousDeath deleted the xmlsocket-connect-null-fix branch June 9, 2026 14:20
Hancock33 added a commit to Hancock33/batocera.piboy that referenced this pull request Jun 14, 2026
------------------------------------------------------------------------------------
cubeb.mk 42dac8a82fc83bf7e63a93704c7f621fb829d1e6 # Version: Commits on Jun 10, 2026
------------------------------------------------------------------------------------
Update cubeb-coreaudio-rs to 840f69cabf0196c7c42c6c94b23c8a9fcff97ded.,

-----------------------------------------------------------------------------------
cemu.mk d20d701ef08558e45abdd76ff8c4099f11d2e4e7 # Version: Commits on Jun 10, 2026
-----------------------------------------------------------------------------------
OpenGL: Clamp vsync to valid value (#1937),

------------------------------------------------------------------------------------------
dolphin-emu.mk 1bc93fd16d5a452bedcc5437923abd0d9fcb8c52 # Version: Commits on Jun 10, 2026
------------------------------------------------------------------------------------------
Merge pull request #14672 from AdmiralCurtiss/recursive-nand

NANDImporter: Abort extraction if a NAND FST entry is visited more than once,

------------------------------------------------------------------------------------------
duckstation.mk 09008bb3a38268889b6d9f0107f94a912b736b65 # Version: Commits on Jun 10, 2026
------------------------------------------------------------------------------------------
Qt: Round round texcoords only applies to 3D

Don't keep the option enabled if sprite filtering is still set to

nearest.,

-----------------------------------------------------------------------------------
eden.mk eaad33adcdfdddbf6d6aec7afdd3df9e1ceed3d5 # Version: Commits on Jun 09, 2026
-----------------------------------------------------------------------------------
[dist, android] Update translations from Transifex for Jun 09 (#4073)

----------------------------------------------------
pcsx2.mk v2.7.407 # Version: Commits on Jun 09, 2026
----------------------------------------------------
- [GS/GL: Revert invalidating depth stencil and add basic fallback for clip control.](PCSX2/pcsx2#14547)

,

-----------------------------------------------------------------------------------
play.mk ee1334610cb2181bd9a84e837ba3ea667ebdb16a # Version: Commits on Jun 06, 2026
-----------------------------------------------------------------------------------
Android: Upgrade NDK version.,

-------------------------------------------------------------------------------------
ppsspp.mk 8faf6d9a3dec88cb4dc4cc150005a2155574833b # Version: Commits on Jun 10, 2026
-------------------------------------------------------------------------------------
Oops, fix regression from previous PR,

------------------------------------------------------------------------------------
rpcs3.mk f32ff351da5962588c1b4a26c3ec8ade5fd4010e # Version: Commits on Jun 09, 2026
------------------------------------------------------------------------------------
rsx: Use mip0 resolution scale when computing mipmap scaling factors,

---------------------------------------------------------------------------------------
touchhle.mk 426b6cbba5c1a59c0da8542b1afdacec85d549a3 # Version: Commits on Jun 09, 2026
---------------------------------------------------------------------------------------
Implement [NSData data]

Change-Id: Idbb95ce11e83b7dfe209b1bb44536b5ec1e958db,

-------------------------------------------------
vice.mk r46137 # Version: Commits on Jun 10, 2026
-------------------------------------------------
null

-------------------------------------------------------------------------------------
ikemen.mk 39990e1931310c99d6e780ba0e4d2050101a9117 # Version: Commits on Jun 10, 2026
-------------------------------------------------------------------------------------
Merge pull request #3695 from SuperFromND/develop

other: Add `-loadmotif`, `-pN`, `-setport`, `-ip` to `-h` output,

---------------------------------------------------------------
ruffle.mk nightly-2026-06-10 # Version: Commits on Jun 10, 2026
---------------------------------------------------------------
## What's Changed

* avm1: Xmlsocket connect null fix by @SuchAFuriousDeath in ruffle-rs/ruffle#23931

* Slice logic cleanup, take 2 by @moulins in ruffle-rs/ruffle#23676

* core: Make use of  `istr!` macro in several places by @SuchAFuriousDeath in ruffle-rs/ruffle#23935

* core: Remove unnecessary `dyn` usage by @SuchAFuriousDeath in ruffle-rs/ruffle#23936

* core: Use __jcvt() intrinsic on AArch64 for f64→i32 conversion by @SuchAFuriousDeath in ruffle-rs/ruffle#23937

**Full Changelog**: ruffle-rs/ruffle@nightly-2026-06-09...nightly-2026-06-10,

---------------------------------------------------------------------------------------
thextech.mk ec77ebdca60928cf0356ffd1a7c959044bac5ae3 # Version: Commits on Jun 10, 2026
---------------------------------------------------------------------------------------
Vanilla mode: warn users for blocks with invalid destroy events (#1143),

-----------------------------------------------------------------------------------------
libwinevbs.mk 2e16a8fab249934c96f28c7610b3cfd4e6023bcc # Version: Commits on May 30, 2026
-----------------------------------------------------------------------------------------
fix: FindFirstFileW opendir fails on bare drive prefix,

------------------------------------------------------------
corsixth.mk v0.70.0-beta2 # Version: Commits on Jun 10, 2026
------------------------------------------------------------
0.70.0 beta 2 (#3380)

* 0.70.0 beta 2

* Refresh

* Fix wordings,

------------------------------------------------------------------------------------------
devilutionx.mk cb75236f095f467202ca5d645a809033592b634c # Version: Commits on Jun 10, 2026
------------------------------------------------------------------------------------------
Update from devilutionx.pot,

--------------------------------------------------------------------------------------
omf2097.mk 24a9d266fc5cc7b580f26e9a839a0811d1b43f9c # Version: Commits on Jun 10, 2026
--------------------------------------------------------------------------------------
github: Bump johnwason/vcpkg-action to v8 for node24,

-------------------------------------------------------------------------------------------------
shadps4-qtlauncher.mk 71cf42839ac19b75dfbeabb77db4fe6060fbb618 # Version: Commits on Jun 10, 2026
-------------------------------------------------------------------------------------------------
[ci skip] Qt GUI: Update Translation. (#364)

Co-authored-by: georgemoralis <[email protected]>,

----------------------------------------------------------------------------------------------------
sdl2-gamecontrollerdb.mk 704ae9ef403cbf9b211401d9dc01b5674484fe95 # Version: Commits on Jun 10, 2026
----------------------------------------------------------------------------------------------------
Fix mapping for Anbernic RG28XX (#958),

----------------------------------------------------------------------------------------
retroarch.mk 7a4f9900c0ba3b2ae9b15666ba04084ee01d54ea # Version: Commits on Jun 10, 2026
----------------------------------------------------------------------------------------
Fixing missing include (#19101),

------------------------------------------------------------------------------------------
openbor7530.mk 8ace18eb9952eee8e46e81406ce63524266ccaec # Version: Commits on Jun 10, 2026
------------------------------------------------------------------------------------------
Fix OpenWav2Bor WAV parsing and buffer safety

Allocate enough space for WAV sample padding, replace unsafe header

string copies, validate WAV chunk sizes and alignment, and harden cleanup paths for malformed input.,

------------------------------------------------------------------------------------------
libaltsound.mk f4b790a19ae45a9f93ae0051df6933800c7a6446 # Version: Commits on Jun 10, 2026
------------------------------------------------------------------------------------------
adapt BASS-emu layer a bit,

---------------------------------------------------------------------------------------
vpinball.mk fde0e3c6252b110af2a8008ca8f6496df4d0ea62 # Version: Commits on Jun 10, 2026
---------------------------------------------------------------------------------------
Merge pull request #3474 from francisdb/fix-gfxbackend

render: clean up graphics backend selection, validation and UI,

----------------------------------------------------------------------------------------
doomretro.mk 2dac882342535093c6b3ca89418a55dff4f3e985 # Version: Commits on Jun 10, 2026
----------------------------------------------------------------------------------------
Further work on master levels support,

--------------------------------------------------------------------------------------
yquake2.mk ef073dfbd3c88657716938feb459fe7c71c422db # Version: Commits on Jun 09, 2026
--------------------------------------------------------------------------------------
game: make monster functions static,

--------------------------------------------------------------------------------------------------
libretro-gearcoleco.mk 5ca5df183bddd3ab63b004bf2923492affe9af2f # Version: Commits on Jun 10, 2026
--------------------------------------------------------------------------------------------------
Reject unsupported cartridge buffers during loading,

-------------------------------------------------------------------------------------------------
libretro-geargrafx.mk 951820a68fc81cc9babb291abd94687db414f171 # Version: Commits on Jun 09, 2026
-------------------------------------------------------------------------------------------------
Fix warning,

--------------------------------------------------------------------------------------------------
libretro-gearsystem.mk 055606e630017f2906eb5260a2b2861297735a92 # Version: Commits on Jun 09, 2026
--------------------------------------------------------------------------------------------------
Fix warning,

----------------------------------------------------------------------------------------------
libretro-hatari.mk c605d3aa342f2ad8f915f94bf03bae018e1be7b7 # Version: Commits on Jun 10, 2026
----------------------------------------------------------------------------------------------
add makefile platform for emscripten (#108)

* add makefile platform for emscripten

* Use Toad King's emscripten libco,

---------------------------------------------------------------------------------------------
libretro-opera.mk 4f5e5b453a2e10baf4ea4fd7465ad19c368bf244 # Version: Commits on Jun 07, 2026
---------------------------------------------------------------------------------------------
DSPP: return CPU-supplied DSP FIFO values

CPU writes to EI FIFO-head addresses 0x70..0x7c set CPUSupply and latch the

supplied word in EIRAM. When the DSP later reads the normal input FIFO window

at 0xf0..0xfc, consume that latched word instead of returning PRNG data.

The random source is the separate DSPP noise register. Using it for a valid

CPU-supplied FIFO read injects spurious samples, causing startup pops in

Flashback sound effects such as footsteps.

Source:

- WO 94/16383, PDF pp.17-18: 0EAh is the pseudorandom noise generator, 0F0h

  through 0FCh are input FIFOs, and 070h through 07Eh read the corresponding

  input FIFOs without removing the input word.

- WO 94/16383, PDF pp.25-26: EI FIFO reads refill EIRAM from the corresponding

  FIFO, and the EI FIFO control unit also receives direct host CPU input.

- Portfolio OS src/audio/audiofolio/dspp_addresses.h: DSPP_FIFOHEAD_ZERO_ADDRESS

  is 0x0070 and DSPI_NOISE is 0x00EA, separating FIFO-head data from the noise

  register.

- Portfolio OS src/audio/audiofolio/dspp_touch_anvil.c: dsphResetFIFO() clears

  DSPP_FIFOHEAD_ZERO_ADDRESS + DMAChan in EI memory to reduce pops.,

----------------------------------------------------------------------------------------------------
libretro-parallel-n64.mk 38cfe49a6f0071ad46184a3910b2bfc5acfb7ce7 # Version: Commits on Jun 10, 2026
----------------------------------------------------------------------------------------------------
angrylion: barrier overlapping color/depth image switches in MT mode

In multithreaded mode every worker replays the buffered command list at

its own pace and rasterizes only its own interleaved scanlines, so two

groups of draws separated by a SET_COLOR_IMAGE or SET_MASK_IMAGE that

retargets overlapping RDRAM race with each other: the same memory is

addressed through two different scanline layouts, and which group's

writes land last differs per worker. The result is nondeterministic

interleaved-scanline streaks. Ocarina of Time's pause screen triggers

both shapes of the hazard when redrawing the character preview box: it

renders the model into narrow sub-images carved out of the framebuffer

region (including reusing the main cfb address at a different width)

and presses one of those sub-images into service as the depth buffer of

another pass.

The existing sync levels only barrier these switches wholesale at

Medium (color/depth) and High (texture); at Low nothing flushes between

the passes and the corruption shows on every pause-screen frame.

Track the last color and depth image (address plus a row-stride x 240

extent estimate) at command-buffering time and flush the workers before

a switch whose region overlaps either tracked image with a different

configuration. Identical reconfigurations and the standard layout of

disjoint cfb/zbuf buffers keep the fast path, so normal gameplay frames

gain no barriers at sync level Low. With the barrier in place the pause

screen renders deterministically and bit-exact with the single-threaded

renderer at every sync level; in-game scenes are unchanged.,

----------------------------------------------------------------------------------------------
libretro-ppsspp.mk 8faf6d9a3dec88cb4dc4cc150005a2155574833b # Version: Commits on Jun 10, 2026
----------------------------------------------------------------------------------------------
Oops, fix regression from previous PR,

----------------------------------------------------------------------------------------------
libretro-prboom.mk 958665a82ea45858b89ac227b5220a9a3eefbe2b # Version: Commits on Jun 10, 2026
----------------------------------------------------------------------------------------------
v_video: fit hi-res full-screen page art to the screen

ZDoom packs ship hi-res title cards and other full-screen page art (a

640x480 TITLEPIC, finale/help/intermission backdrops, etc.).  The

full-screen draw stretched every page through VPT_STRETCH, which scales

by SCREENWIDTH/320 and SCREENHEIGHT/200 -- correct for vanilla 320x200

art, but for a 640x480 card it produces a ~2x oversize image, so only the

top-left quarter is visible and the rest runs off the screen.  GZDoom

fits such art to the screen regardless of its native size.

Add a VPT_FITSCREEN flag: when set, V_DrawMemPatch derives the stretch

factors from the patch's own width/height (SCREENWIDTH/patch->width,

SCREENHEIGHT/patch->height) instead of the fixed 320x200 virtual page, so

the whole image maps onto the whole screen.  The full-screen page drawers

(V_DrawNumPatchFS and V_DrawNumPatchFullScreenCached) pass it for art

taller than the vanilla 200 -- the reliable signal of ZDoom hi-res pages.

Vanilla 320x200 titles and 200-tall widescreen cards (KEX-style) are

unchanged: they keep the existing VPT_STRETCH path and the >320

wide-centering, since fit only engages on height > 200.  Non-full-screen

patches (HUD, menu, status bar) never set the flag and are untouched.

Verified at 640x400 output: a 640x480 TITLEPIC with an 8px border now

shows that border on all four screen edges with the interior centered

(whole image fills the frame); before, only the top-left region drew.

A plain DOOM.WAD title (320x200) still fills the screen, a 426x200

widescreen card still routes through the centering path, and extended

runs on the hi-res title are stable.,

---------------------------------------------------------------------------------------------------
libretro-snes9x-next.mk 780e4259f096797931a3030d08ffaeec62f2a593 # Version: Commits on Jun 10, 2026
---------------------------------------------------------------------------------------------------
ppu: batch sprite scanline runs with line-invariant OBJ state

DrawOBJS rendered every scanline independently: per line, every

sprite redid its base-tile computation, tile-budget walk, and

window-clip walk, and issued LineCount=1 tile calls -- for sprites

that span 8 to 32 scanlines. The background dispatchers batch

scroll-constant line runs; the sprite dispatcher never did.

Two lines are batchable when their per-line OBJ lists carry the same

sprites in the same order with each sprite's tile line advanced by

exactly one, and the same remaining tile budget. Within such a run

the per-sprite setup, the per-line tile-budget pattern, and the

window-clip walk are all provably line-invariant, so the run is

rendered sprite by sprite with one LineCount=n call per tile span

instead of n single-line calls. A pixel belongs to exactly one

scanline and sprites are still written in list order within it, so

equal-priority overlap resolves identically and output is bit-exact.

A sprite whose batch crosses its 8-row tile band renders as two

spans, the second band-aligned with the tile row group re-derived.

Vertically flipped sprites step their tile line backwards and fail

the batch probe, keeping their runs on the per-line path, as do

interlace and hires-OBJ configurations.

Measured batchability (probe histogram, 1800f): 49-93% of rendered

scanlines see a full 8-line invariant run ahead across the corpus.

15-trial fps means (600f): two sprite-heavy titles +1.5% each, four

more at +0.8-0.9%, the rest within noise of zero; every round-one

negative re-measured non-negative at higher trial counts.

Bit-exact across the 18-ROM corpus (900 frames each) on the combined

audio+video stream hash. Builds clean on linux_x86_64, MinGW x86_64,

ARMv7-NEON, AArch64. Clean git am --keep-cr round-trip verified.,

----------------------------------------------------------------------------------------------
libretro-stella.mk 3e3061809913e59a4378737127ce0ae95b36e889 # Version: Commits on Jun 09, 2026
----------------------------------------------------------------------------------------------
Fixes for some minor warnings from clang-tidy.,

--------------------------------------------------------------------------------------------
slang-shaders.mk 140d1bcc67a7287670ad6a02fc77e11c10ef5e07 # Version: Commits on Jun 10, 2026
--------------------------------------------------------------------------------------------
Adding EWA Cubics shader and updating SharpSmooth & Arcade with it (#919)

* Add files via upload

* Add files via upload

* Update crt-CreativeForce-Arcade.slangp

* Update crt-CreativeForce-SharpSmooth.slangp

* Update EWA-Cubics.slang

* Update crt-CreativeForce-SharpSmooth.slang

* Update crt-CreativeForce-Arcade.slang,
Hancock33 added a commit to Hancock33/batocera.piboy that referenced this pull request Jun 14, 2026
-----------------------------------------------------------------------------------
cemu.mk fe70fdcfe5ced5a4032b7c4561f7cad6f011314b # Version: Commits on Jun 13, 2026
-----------------------------------------------------------------------------------
debugger: Don't clear register views when continuing to run code,

------------------------------------------------------------------------------------------
duckstation.mk cfde5bf5c3418d3ae4be566dc21dca467da1c5b5 # Version: Commits on Jun 07, 2026
------------------------------------------------------------------------------------------
Achievements: Move achievement pinning to database,

--------------------------------------------------------------------------------------
openmsx.mk 3a40a511c97cbf42f86aa90394a4fe07ad455cd3 # Version: Commits on Jun 13, 2026
--------------------------------------------------------------------------------------
corrections and additions to the romdb,

----------------------------------------------------
pcsx2.mk v2.7.416 # Version: Commits on Jun 13, 2026
----------------------------------------------------
- [Misc: clean up COM code](PCSX2/pcsx2#14562)

,

-------------------------------------------------------------------------------------
ppsspp.mk 14dc5a51560628581c023235e9d35ec28fb14b6a # Version: Commits on Jun 14, 2026
-------------------------------------------------------------------------------------
Merge pull request #21825 from hrydgard/ridge-racer-sprite

Fix the ugly line on Ridge Racer lens flares,

------------------------------------------------------------------------------------
rpcs3.mk 4fed5e7b88d78c03359009377b740a3c826505a7 # Version: Commits on Jun 14, 2026
------------------------------------------------------------------------------------
Fix iso integrity log message,

-----------------------------------------------------------------------------------
ymir.mk bca07409fdd89d5e136356a063da71d9874d3424 # Version: Commits on Jun 13, 2026
-----------------------------------------------------------------------------------
feat(sys): Use GCD to ensure SH2 overclocking doesnt introduce slight clock errors to other components,

-------------------------------------------------------------------------------------
ikemen.mk c42967d13e5b229f7dcf9450f471fd2a15d5858f # Version: Commits on Jun 13, 2026
-------------------------------------------------------------------------------------
Merge pull request #3705 from SuperFromND/bgdef-modelrotate

feat: `modelrotate` for 3D BGDefs,

---------------------------------------------------
ruffle.mk v0.3.0 # Version: Commits on Jun 14, 2026
---------------------------------------------------
## What's Changed

* avm2: Fixes to Error's prototype by @Lord-McSweeney in ruffle-rs/ruffle#23719

* aur: Update maintainers for ruffle-nightly-bin by @kjarosh in ruffle-rs/ruffle#23727

* Add testutils CLI by @Dinnerbone in ruffle-rs/ruffle#23677

* ci: Use correct npm dist-tag for nightly and stable releases by @kjarosh in ruffle-rs/ruffle#23728

* desktop: Add Rust stack trace to panic reports by @kjarosh in ruffle-rs/ruffle#23714

* avm2: Fix new Video(0, 0) to use default size by @1bugproof in ruffle-rs/ruffle#23708

* avm2: Stop assuming Object is an enum by @SuchAFuriousDeath in ruffle-rs/ruffle#23725

* Enable jpegxr on Linux Nightlies by @Fancy2209 in ruffle-rs/ruffle#23741

* avm1: Fix behavior of `Sound` ownership by @ChrisCPI in ruffle-rs/ruffle#23733

* chore: Bump the npm-minor group in /web with 7 updates by @dependabot[bot] in ruffle-rs/ruffle#23748

* chore: Bump enumset to 1.1.13 by @torokati44 in ruffle-rs/ruffle#23753

* chore: Bump cssnano to 8.0.1 and cssnano-preset-advanced to 8.0.1 in /web by @torokati44 in ruffle-rs/ruffle#23752

* chore: Run `npm audit fix` in web/ by @torokati44 in ruffle-rs/ruffle#23742

* video/vp6: Init nihav decoder with encoded size, not display size by @SuchAFuriousDeath in ruffle-rs/ruffle#23665

* web/audio: Pin AudioContext to 44.1 kHz by @SuchAFuriousDeath in ruffle-rs/ruffle#23701

* web: Fix MVP wasm build by explicitly disabling post-MVP features by @SuchAFuriousDeath in ruffle-rs/ruffle#23756

* avm2: Set dobj as transformed_by_script on transform `colorTransform` and `matrix` setters by @ChrisCPI in ruffle-rs/ruffle#23759

* avm2: Return ArgumentError instead of panicking on invalid ShaderJob target by @SuchAFuriousDeath in ruffle-rs/ruffle#23763

* chore: Migrate to current Node.js 26 from 25 for testing by @torokati44 in ruffle-rs/ruffle#23661

* avm2: Print full error details when logging caught error by @Lord-McSweeney in ruffle-rs/ruffle#23726

* avm2: Remove mostly unused `crate::avm2::string` by @Lord-McSweeney in ruffle-rs/ruffle#23773

* wstr: Remove unsafe usage from str_eq by @kjarosh in ruffle-rs/ruffle#23774

* desktop: Remove fontconfig from Windows and add fontconfig-dlopen  by @kjarosh in ruffle-rs/ruffle#23768

* chore: Bump nihav-vp6 to latest git master by @torokati44 in ruffle-rs/ruffle#23765

* chore: Bump eslint-plugin-jsdoc from 62.9.0 to 63.0.0 in /web by @dependabot[bot] in ruffle-rs/ruffle#23781

* chore: Bump the npm-minor group across 1 directory with 7 updates by @dependabot[bot] in ruffle-rs/ruffle#23779

* chore: Fix a bunch of typos (mostly in comments) by @torokati44 in ruffle-rs/ruffle#23782

* chore: Bump qs and express in /web by @dependabot[bot] in ruffle-rs/ruffle#23784

* avm2: Fix stack trace for context3DCreated event handler by @Lord-McSweeney in ruffle-rs/ruffle#23745

* avm2: Verify that lazy namespace is actually a Namespace in the verifier by @Lord-McSweeney in ruffle-rs/ruffle#23777

* tests: Begin adding test coverage for signatures of flash.events classes by @Lord-McSweeney in ruffle-rs/ruffle#23786

* ci: Generate AVM2 report only for nightlies by @kjarosh in ruffle-rs/ruffle#23787

* avm1: Clear stack only between frames by @kjarosh in ruffle-rs/ruffle#23795

* avm1: Introduce AVM1 playerglobal by @Dinnerbone in ruffle-rs/ruffle#23730

* core: Fix movie clip looping by @kjarosh in ruffle-rs/ruffle#23802

* tests: Add --skip-no-player to testutils execute by @kjarosh in ruffle-rs/ruffle#23805

* tests: Trace warnings if enabled when executing tests by @kjarosh in ruffle-rs/ruffle#23804

* avm1: Do not trace an error on with(undefined)/with(null) by @kjarosh in ruffle-rs/ruffle#23809

* core: Normalize \blank\ target to \_blank\ in getURL/navigateToURL  by @SuchAFuriousDeath in ruffle-rs/ruffle#23792

* avm1: Remove magic properties and this from SWF4 by @kjarosh in ruffle-rs/ruffle#23806

* avm2: Implement a number of missing `flash.events` classes by @Lord-McSweeney in ruffle-rs/ruffle#23812

* tests: Use FP's output in avm2/graphics_draw_triangles by @kjarosh in ruffle-rs/ruffle#23818

* chore: Bump josStorer/get-current-time from 2.1.2 to 2.1.3 by @dependabot[bot] in ruffle-rs/ruffle#23820

* chore: Bump the npm-minor group in /web with 2 updates by @dependabot[bot] in ruffle-rs/ruffle#23822

* chore: Bump the cargo-minor group with 3 updates by @dependabot[bot] in ruffle-rs/ruffle#23823

* chore: Bump webdriverio package family to 9.27.2 in web/ by @torokati44 in ruffle-rs/ruffle#23828

* avm2: More fixes to signatures of `flash.events` classes by @Lord-McSweeney in ruffle-rs/ruffle#23833

* avm1: Support property syntax in delete2 by @kjarosh in ruffle-rs/ruffle#23834

* 🤖 core: Move flash.text.engine TextLine onto its own DisplayObject by @doctorpangloss in ruffle-rs/ruffle#23817

* core: Extract run_file_dialog helper to reduce boilerplate in file dialog loaders by @SuchAFuriousDeath in ruffle-rs/ruffle#23831

* core/render: Add support for loading JPEGXR images by @ChrisCPI in ruffle-rs/ruffle#23789

* tests: Add asc compiler for compiling AVM2 tests by @kjarosh in ruffle-rs/ruffle#23794

* chore: Bump tmp from 0.2.5 to 0.2.7 in /web by @dependabot[bot] in ruffle-rs/ruffle#23843

* refactor: Enum-map related improvements by @SuchAFuriousDeath in ruffle-rs/ruffle#23846

* wgpu: Yeet the copy_srgb shader and pipeline by @SuchAFuriousDeath in ruffle-rs/ruffle#23827

* tests: Add a failing visual test for scale_rotation_cache by @torokati44 in ruffle-rs/ruffle#23796

* avm2: Minor performance improvements by @Lord-McSweeney in ruffle-rs/ruffle#23840

* core: Include `ruffle_render/jpegxr` in `jpegxr` feature by @ChrisCPI in ruffle-rs/ruffle#23852

* chore: Clippy beta fixes by @danielhjacobs in ruffle-rs/ruffle#23762

* ci: Enable fontconfig-dlopen in the macOS Rust tester job by @torokati44 in ruffle-rs/ruffle#23855

* core: Make loaded image MovieClips work the way SWF >= 5 movies do wrt. scale and rotation caching by @torokati44 in ruffle-rs/ruffle#23838

* avm2: Refactor draw_triangles_internal by @SuchAFuriousDeath in ruffle-rs/ruffle#23761

* core: Rework infrastructure around the FileDialogResult trait by @SuchAFuriousDeath in ruffle-rs/ruffle#23844

* text: Prevent measuring text twice during layout by @kjarosh in ruffle-rs/ruffle#23862

* core: Simplify code in MovieClip.event_dispatch by @kjarosh in ruffle-rs/ruffle#23867

* swf: Add support for PlaceObject/allEventFlags by @kjarosh in ruffle-rs/ruffle#23868

* wstr: Implement Pattern for owned [u8; N] and [u16; N] arrays by @SuchAFuriousDeath in ruffle-rs/ruffle#23858

* ci: Don't enable fontconfig-dlopen in the macOS Rust tester job by @torokati44 in ruffle-rs/ruffle#23873

* ci: Enable full LTO for releases by @kjarosh in ruffle-rs/ruffle#23863

* web: Polyfill document.embeds to return ruffle-embeds too by @danielhjacobs in ruffle-rs/ruffle#22449

* web: Support named access on document.embeds by @danielhjacobs in ruffle-rs/ruffle#23878

* core: Add MultiFileDialogResult and display_file_open_dialog_multiple by @SuchAFuriousDeath in ruffle-rs/ruffle#23866

* avm2: Add type enum for error 2006 by @ChrisCPI in ruffle-rs/ruffle#23883

* chore: Bump the npm-minor group in /web with 11 updates by @dependabot[bot] in ruffle-rs/ruffle#23885

* chore: Bump zbus, zvariant, toml crates by @torokati44 in ruffle-rs/ruffle#23887

* chore: Bump the cargo-minor group across 1 directory with 6 updates by @dependabot[bot] in ruffle-rs/ruffle#23886

* chore: Cargo.lock maintenance by @torokati44 in ruffle-rs/ruffle#23888

* core: Do not dispatch clip events not present in allEventFlags by @kjarosh in ruffle-rs/ruffle#23869

* Fix panic on writeback from empty CPU dirty region (prevalent in Earn to Die) by @n-raine in ruffle-rs/ruffle#23898

* avm2: Implement most of the version gating for `flash.events` classes by @Lord-McSweeney in ruffle-rs/ruffle#23836

* avm2: More minor crossbridge performance improvements by @Lord-McSweeney in ruffle-rs/ruffle#23849

* tests: add `known_failure` support to audio assertions by @moulins in ruffle-rs/ruffle#23861

* avm2: Fix setProgramConstantsFromByteArray implementation by @SuchAFuriousDeath in ruffle-rs/ruffle#23901

* frontend-utils: Use native TLS instead of rustls by @kjarosh in ruffle-rs/ruffle#23894

* chore: Bump openssl from 0.10.73 to 0.10.80 by @dependabot[bot] in ruffle-rs/ruffle#23902

* chore: Additional Rust dependency version bumps by @torokati44 in ruffle-rs/ruffle#23903

* avm1: Match Flash broadcaster prototype enumeration order by @SuchAFuriousDeath in ruffle-rs/ruffle#23892

* avm1: Stub several classes and properties by @SuchAFuriousDeath in ruffle-rs/ruffle#23899

* avm1: Define `constructor` as own property on system class objects by @SuchAFuriousDeath in ruffle-rs/ruffle#23893

* avm2: Add a field to ops instead of adding separate integral variants by @Lord-McSweeney in ruffle-rs/ruffle#23923

* chore: Bump the npm-minor group in /web with 6 updates by @dependabot[bot] in ruffle-rs/ruffle#23925

* avm1: Xmlsocket connect null fix by @SuchAFuriousDeath in ruffle-rs/ruffle#23931

* Slice logic cleanup, take 2 by @moulins in ruffle-rs/ruffle#23676

* core: Make use of  `istr!` macro in several places by @SuchAFuriousDeath in ruffle-rs/ruffle#23935

* core: Remove unnecessary `dyn` usage by @SuchAFuriousDeath in ruffle-rs/ruffle#23936

* core: Use __jcvt() intrinsic on AArch64 for f64→i32 conversion by @SuchAFuriousDeath in ruffle-rs/ruffle#23937

* chore: Bump shell-quote from 1.8.3 to 1.8.4 in /web by @dependabot[bot] in ruffle-rs/ruffle#23941

* frontend-utils: Allow switching reqwest back to rustls by @torokati44 in ruffle-rs/ruffle#23947

* avm1: Remove \Target not found\ trace by @kjarosh in ruffle-rs/ruffle#23946

* avm2: Fix serializing invalid Date objects by @Lord-McSweeney in ruffle-rs/ruffle#23951

* swf: Seek to glyph shape offsets when reading DefineFont2/3 by @kjarosh in ruffle-rs/ruffle#23949

* + libssl-dev, openssl-devel by @sombraguerrero in ruffle-rs/ruffle#23953

* avm1: Support SWF4 target paths properly by @kjarosh in ruffle-rs/ruffle#23948

* chore: Bump WebdriverIO to 9.28.0 in web/ by @torokati44 in ruffle-rs/ruffle#23954

* swf: Fix underflow on keyPress clip action without key code by @kjarosh in ruffle-rs/ruffle#23958

* swf: Fix overflow while reading convolution filter by @kjarosh in ruffle-rs/ruffle#23961

* swf: Fix underflow/OOM errors when decompressing by @kjarosh in ruffle-rs/ruffle#23962

* core: Add AvmString::split_dependent by @SuchAFuriousDeath in ruffle-rs/ruffle#23955

* swf: Fix potential OOM in DefineSceneAndFrameLabelData by @kjarosh in ruffle-rs/ruffle#23960

* avm1: Fix SetTarget2 movie clip selection by @kjarosh in ruffle-rs/ruffle#23964

* chore: Update translations from Crowdin by @kjarosh in ruffle-rs/ruffle#23967

* avm1: Handle edge values in setProperty() by @kjarosh in ruffle-rs/ruffle#23966

* avm2: Simplify AMF serialization logic by @Lord-McSweeney in ruffle-rs/ruffle#23956

* avm2: Remove redundant method `PropertyMap::insert_with_namespace` by @Lord-McSweeney in ruffle-rs/ruffle#23969

* chore: Bump esbuild from 0.28.0 to 0.28.1 in /web by @dependabot[bot] in ruffle-rs/ruffle#23968

* chore: Update translations from Crowdin by @kjarosh in ruffle-rs/ruffle#23970

* refactor: Use api-report as dependency and move stub-report to tools/ by @kjarosh in ruffle-rs/ruffle#23922

* avm1/avm2: Add AMF NetConnection Array serialization known failures by @danielhjacobs in ruffle-rs/ruffle#23957

* tests: Add avm1/set_target_2_swf5 test by @kjarosh in ruffle-rs/ruffle#23965

## New Contributors

* @doctorpangloss made their first contribution in ruffle-rs/ruffle#23817

**Full Changelog**: ruffle-rs/ruffle@v0.2.0...v0.3.0,

---------------------------------------------------------------------------------------
thextech.mk db3a01db31435fc4524bb42ab81d99b3f6aa0807 # Version: Commits on Jun 14, 2026
---------------------------------------------------------------------------------------
changelog.txt: move MDX to 1.3.7.3 changelog,

-------------------------------------------------------------------------------------------
jazz2-native.mk a09fd6b6e54c42c9e5c622704b14a6ae32e06d1c # Version: Commits on Jun 13, 2026
-------------------------------------------------------------------------------------------
Tilemap draw call aggregation, improved player color customization,

-----------------------------------------------------
ledspicer.mk 0.7.6 # Version: Commits on Jun 14, 2026
-----------------------------------------------------
LEDSpicer v0.7.6 - Release Notes

Release Date

June 14, 2026

Overview

This release focuses on critical stability improvements and bug fixes for crafted profile handling and memory management.

� Bug Fixes

Crafted Profile System

    Fixed use-after-free crash when loading the same crafted profile twice

    Improved profile caching - Crafted profiles are now properly cached by game name instead of being rebuilt on every request

    Fixed profile stack history - FinishLastProfile now correctly steps back one profile at a time through the history stack

Flag Handling

    Corrected FORCE_RELOAD flag - Profile reload now properly ignores cache and rebuilds in place

    Corrected REPLACE flag - Profile replacement logic now works correctly on the craft/load path

� Changes

Configuration Updates

    Configuration values now use proper boolean capitalization (True/False instead of true/false)

    Enhanced configuration defaults in ledspicer.conf

Code Quality

    Refactored profile management to eliminate redundant cache operations

    Improved memory management with proper reference counting for replaced profiles

    Enhanced logging for better debugging of profile lifecycle

Documentation & Branding

    Updated README with improved project description and branding

    Enhanced feature list and typical use cases documentation

    Updated copyright year to 2026

CI/CD

    Updated GitHub Actions checkout action from v4 to v6

Package Updates

    Updated version across all package managers (Debian, RPM, Arch)

🔧 Technical Details

    Changed default platform parameter handling in craftProfile()

    Introduced replaceProfileReferences() for cleaner memory management

    Optimized cache key handling for platform templates vs. crafted profiles

----------------------------------------------------------------------------------------
retroarch.mk 2669eaad7b4318c415028e3d2feaf9d7f092885e # Version: Commits on Jun 14, 2026
----------------------------------------------------------------------------------------
Fetch translations from Crowdin,

----------------------------------------------------------------------------------------
doomretro.mk e011e4abf085fbbf5d7c9ba862bab40f48543bed # Version: Commits on Jun 14, 2026
----------------------------------------------------------------------------------------
Fix double use of uppercase(),

--------------------------------------------------------------------------------------
yquake2.mk dcda9144d34a5d76ff462675ff05d8acde30ecfe # Version: Commits on Jun 13, 2026
--------------------------------------------------------------------------------------
models: fix MDR uncompressed-frame heap overflow from byte/float count mix-up,

------------------------------------------------------------------------------------------
xash3d-fwgs.mk 1e31fbcd513bdabd557a098fcdd06fa2037cd99e # Version: Commits on Jun 14, 2026
------------------------------------------------------------------------------------------
ref: shut up DecalShoot about decals must hit mod_brush

This is an annoying message that's caused by the game code. Decals, without

custom renderer, cannot be rendered on non-brush entities, and everybody knows

that anyway.,

-------------------------------------------------------------------------------------------------------
libretro-beetle-pce-fast.mk 718dd0abb9ffcd95308ae79594e86d15148d7a2f # Version: Commits on Jun 14, 2026
-------------------------------------------------------------------------------------------------------
libretro: add zero-copy software-framebuffer direct render path

Use RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER so the VDC can

render straight into the frontend's (often GPU-mapped) framebuffer,

removing the surface->frontend copy that video_cb otherwise performs.

The renderer already writes through a single MDFN_Surface target whose

pixels/pitch it dereferences at render time (target = surface->pixels +

(frame_counter-14)*surface->pitch, all Mix*/Draw* honour surface->pitch),

so the direct path needs no renderer changes: in retro_run, before

Emulate, request a framebuffer; if granted, repoint surf->pixels/pitch at

it for the frame, render, ship video_cb from there with the framebuffer's

pitch, then restore the persistent fallback surface.

Why this is safe:

- The VDC renderer is write-only on the target surface (verified: every

  reference is a store), so an uncached framebuffer (no

  RETRO_MEMORY_TYPE_CACHED) is fine; access_flags is WRITE only.

- We do NOT rely on persistent buffer contents: for every scanline in the

  shipped rect [DisplayRect.y, +h) the renderer writes the whole line

  (Mix + DrawOverscan sides, or a full DrawOverscan in burst/blank), so a

  frontend that rotates buffers per frame yields no garbage.

- Only used when the granted buffer is RGB565 (our native output), large

  enough (>= FB_WIDTH x FB_HEIGHT), and has an even byte pitch; otherwise

  the calloc'd fallback surface is used unchanged.

- Frameskip frames don't request a buffer (video_cb(NULL,...) as before).

- If the frontend doesn't implement the call, the result is latched off

  (fb_direct_supported) so we probe only once.

surf->pixels/pitch are always restored after the frame, so the fallback

surface is intact whenever a frame declines the framebuffer. Pitch is

taken from the framebuffer (bytes -> uint16), not assumed to be FB_WIDTH.

(The old psp_hw_render branch rendered its SW path into its own surface

and used the PSP GU for HW; it predates this env call, so there was no

code to port - only the confirmation that the renderer funnels through

one retargetable surface pointer, which makes this drop-in.)

Verified: full clean build (make -j4, exit 0, .so, 0 warnings); libretro.c

passes -std=gnu89 -Werror=declaration-after-statement.,

--------------------------------------------------------------------------------------------------
libretro-beetle-psx.mk d460f8342060526678e7fd8222048324c2a80d86 # Version: Commits on Jun 14, 2026
--------------------------------------------------------------------------------------------------
gpu: SSE2-direct Gouraud RGB lane build in DrawSpanVec_NT (no stack roundtrip)

Replaces the scalar-loop-then-_mm_loadu_si128 Gouraud channel build with

direct SSE2 lane construction.  The original

    for (l = 0; l < step; l++) {

        R8[l] = (uint16_t)CHAN(cr, dr, l);

        G8[l] = (uint16_t)CHAN(cg, dg, l);

        B8[l] = (uint16_t)CHAN(cb, db, l);

    }

    R = _mm_loadu_si128((const __m128i*)R8);  /* + G, B */

lowered under gcc 13 -O3 to per-lane leal (cr + dr*l) into GPRs, store

to stack at R8[l], movd back to xmm, punpck-chains.  This shape was the

dominant spill source in the GOURAUD-on (G1) non-textured (T0) hot

loops -- in the unpatched gpu.s, the .L31928 family contained loops

with 97-116 xmm operations and 38-39 stack writes each, across every

T0 + (BMopaque | BMavg | BMaddq | BMadd) blend specialization.

The contributing mechanism: the per-lane GPR live ranges produced by

the scalar loop straddle the dense SIMD blend body that follows, so

the register allocator chooses to materialize each lane's GPR result

on the stack before reloading into xmm.  Replacing the loop with

straight SSE2 ops (vbase broadcast + step vectors + paddd + psrld +

packssdw) keeps the channel intermediates xmm-resident across the

entire blend body.

Approach: lane l holds ((base + d*l) >> 24).  d2..d7 are produced via

paired adds (cheaper than the imuls gcc would pick for d * l, and the

32-bit lanes have plenty of headroom -- worst-case dr*7 has fewer than

25 bits given the Gouraud range).  After the >> 24 shift each lane is

<= 255, so the final packs_epi32 down to u16x8 cannot saturate.

setr_epi32 calls fold to a single mov-from-rodata when dr/dg/db are

constant per span (the common case at the polygon level), and to a

small insert chain otherwise.

Spill counts (gcc 13.3, -O3, x86_64):

  function                                          before     after

  G_Command_DrawPolygon_NV4_G1_T0_BMopaque*         spills=39  spills=0

  G_Command_DrawPolygon_NV4_G1_T0_BMavg*            spills=39  spills=0

  G_Command_DrawPolygon_NV4_G1_T0_BMaddq*           spills=39  spills=0

  G_Command_DrawPolygon_NV4_G1_T0_BMadd*            spills=39  spills=0

  G_Command_DrawPolygon_NV4_G1_T0_BMsub*            spills=39  spills=0

The remaining spill leaders shift to the T1 (textured) variants at

xmm=16 spills=28-30; those follow the same scalar-then-pack pattern

on UV coordinates and are a separate follow-up.

End-to-end bench (x86_64 Linux, gcc 13.3, full DrawSpanVec_NT

BMopaque path -- Gouraud build + dither-off + pack RGB565 + bg load +

write-back, 100000 spans x 320 pixels):

  -O3:  21.0 -> 14.8 ms   (1.42x)   1520 -> 2165 Mpix/s

  -O2:  21.9 -> 15.8 ms   (1.39x)   1455 -> 2028 Mpix/s

Bit-exact across 500000 random Gouraud lane verifications (dr range

10..24 bits, both step=4 and step=8, plus edge cases at dr=0 and

dr=0xFFFFFFFF) and 200 random spans rendered into VRAM.

The NEON / scalar path is unchanged.  On NEON, the original

`vld1q_u16(R8)` plus per-lane access via vget_lane_u8 lowers to direct

register extracts without the stack roundtrip the SSE2 path saw, so

the same gcc lowering bug doesn't apply.  ARMv7 NEON specifically may

need its own audit but the codegen on AArch64 doesn't show comparable

spill density.,

----------------------------------------------------------------------------------------------
libretro-fake08.mk 814991a2571ad3970e386cef48f3b148aa1c27b9 # Version: Commits on Jun 13, 2026
----------------------------------------------------------------------------------------------
Merge pull request #267 from ysamlan/fix-vibrato-modulation

Fix vibrato effect: correct sawtooth to triangle wave modulation,

------------------------------------------------------------------------------------------------
libretro-gambatte.mk e99e1bd9b91de67ac12c77c3679c85447c26e8c8 # Version: Commits on Jun 14, 2026
------------------------------------------------------------------------------------------------
ppu: extend BG palette expansion to the CGB fast path

Follow-up to a991736 (\ppu: precomputed BG palette expansion for DMG

fast path\).  That commit treated only doFullTilesUnrolledDmg; the

CGB renderer at doFullTilesUnrolledCgb had the same eight-dependent-

load gather shape but with per-tile palette selection driven by the

attribute byte (bgPalette + (nattrib & 7) * 4) and was deferred

pending an L1-pressure measurement against the [8][256][4] table.

Microbench result: the working set was a non-issue.  Even with all 8

palettes cycling per tile (worst case -- every attribute byte

different), the 32 KiB total table is L1-friendly because the access

pattern (16 bytes per palette per tile) hits the same line repeatedly

within a tile.  Typical CGB scenes use only a few palettes per frame,

making the hot working set much smaller than the full table.

Microbench (full do-while incl. ntileword and nattrib recompute,

5000 frames x 144 lines x 20 tiles, x86_64 gcc 13.3 -O3):

  Scenario A: 1 palette used (typical):

    old: 53.0 ms (272 Mtiles/s) -> new: 27.5 ms (523 Mtiles/s)  1.93x

  Scenario B: 8 palettes cycling (worst-case for L1):

    old: 53.0 ms (272 Mtiles/s) -> new: 27.2 ms (529 Mtiles/s)  1.95x

Bit-exact across 50000 random trials.

Implementation:

  - bgPaletteExpanded changes shape from [256][4] to [8][256][4].

    Size goes from 4 KiB to 32 KiB (u32 build) / from 2 KiB to 16 KiB

    (VIDEO_RGB565 / VIDEO_ABGR1555 build).  The DMG renderer indexes

    the [0] slot; the CGB renderer indexes [nattrib & 7].

  - refreshBgPaletteExpansion gains a unsigned palette_id argument.

    DMG-mode callers pass 0; the CGB hooks pass the slot affected by

    the BCPD write (index >> 3).  Refreshing one palette costs 256

    iterations of the 4-lane inner expansion -- about 1024 stores --

    so per-palette refresh keeps writes proportional to the work the

    palette change actually invalidated.

  - refreshPalettes (the bulk-reload path used by loadState,

    swapToDMG, the colour-correction setters) rebuilds all 8 slots in

    CGB mode and just slot 0 in DMG mode.  doCgbBgColorChange (the

    one-entry-at-a-time BCPD path) rebuilds the affected slot.

    dmgBgPaletteChange (BGP register) rebuilds slot 0.  These are

    the only paths that write ppu.bgPalette in the codebase.

Codegen (gcc 13.3 -O3, x86_64): both inner loops now have the same

shape -- the do-while body lowers to four movdqu pairs per unrolled

iteration (gcc unrolls by 2, processing 16 pixels per loop body),

plus the nattrib/ntileword recompute scalar tail.

The CGB path's 32 KiB worst case is still smaller than every modern

L1d (x86 32-48 KiB, ARM Cortex-A53/A72 32 KiB), and the typical hot

working set is one or two 4 KiB slots.,

--------------------------------------------------------------------------------------------------
libretro-gearcoleco.mk e6c987725eb2ac6dc0edc85b0dea30fdc7e938d7 # Version: Commits on Jun 14, 2026
--------------------------------------------------------------------------------------------------
Update readme,

-------------------------------------------------------------------------------------------------
libretro-geargrafx.mk 31e8fb7d94e4e4b723790fbd19a02760df5ac816 # Version: Commits on Jun 14, 2026
-------------------------------------------------------------------------------------------------
Update readme,

--------------------------------------------------------------------------------------------------
libretro-gearsystem.mk a4f2cf7fdcb946ca3d150206c1b3e426fabd59c1 # Version: Commits on Jun 14, 2026
--------------------------------------------------------------------------------------------------
Update readme,

---------------------------------------------------------------------------------------------
libretro-opera.mk 64f35570aad94992f1122a810af6cc932862505a # Version: Commits on Jun 14, 2026
---------------------------------------------------------------------------------------------
MADAM: ignore bottom 2 bits in CCB processing

The bottom two bits of the address bus aren't even wired up to

MADAM. Most titles use properly aligned addresses but not all. This

patch ensures the pointers read from the CCB and the CCB address

itself are masked to align them to word boundry.

Fixes Ballz and possibly other titles that had unaligned addresses.,

----------------------------------------------------------------------------------------------------
libretro-parallel-n64.mk 2eff7ef440c8411d6b8670ea32d9b5a40492db12 # Version: Commits on Jun 13, 2026
----------------------------------------------------------------------------------------------------
libretro: only auto-force HLE graphics when the RSP plugin is on auto

The core forced the GFX task through the HLE emitter whenever the active

video plugin was not the one paired with the build's native low-level

path (angrylion for the threaded software build, parallel for the Vulkan

build). That override ran unconditionally, so selecting the cxd4 RSP

explicitly while using a different video plugin silently executed the

HLE display-list emitter instead of the requested low-level microcode,

contradicting the user's choice and making the two paths impossible to

compare. Gate the override on the RSP plugin being left on \auto\: an

explicit cxd4 or parallel selection is now honoured as low-level, while

auto keeps the previous convenience fallback.,

----------------------------------------------------------------------------------------------
libretro-ppsspp.mk 14dc5a51560628581c023235e9d35ec28fb14b6a # Version: Commits on Jun 14, 2026
----------------------------------------------------------------------------------------------
Merge pull request #21825 from hrydgard/ridge-racer-sprite

Fix the ugly line on Ridge Racer lens flares,

----------------------------------------------------------------------------------------------
libretro-prboom.mk 84cd28bd2d58bbfc8a2e48997862fefcac132c6e # Version: Commits on Jun 14, 2026
----------------------------------------------------------------------------------------------
Revert the above-eye 3D-floor water chain (translucent ceiling approach)

This reverts the four-commit chain that drew a swimmable water surface seen

across an opening from below it:

  1ae278f draw above-eye 3D-floor water as a translucent ceiling plane

  bb17de3 tint the submerged volume for above-eye 3D-floor water

  554a06b blend 3D-floor water at the map's alpha instead of fixed 50/50

  4327cc2 give 3D-floor water a solid colour when its flat is a bare marker

The approach is structurally wrong and cannot be salvaged by tuning.  It draws

the water as a single flat screen-space translucent span.  But the far wall of

the flooded room spans from its floor (~z -16) to its ceiling (z 448) within one

screen column, and only the part below the surface (z 138) is underwater.  A

flat span cannot express 'underwater up to the waterline, air above it' when the

far geometry crosses the surface mid-column, so the tint covers far above the

real water line regardless of clamp direction or alpha.  The result reads as a

blue sheet hung over the top of the opening, not a water surface -- visibly

worse than drawing nothing.

Correct 3D-floor water needs the surface clipped as a true horizontal plane

against the per-column far geometry (a real waterline), which is a substantial

renderer feature, not a span tweak.  Reverting until that exists rather than

shipping a broken effect.  Restores the exact pre-chain state (bb842a3); vanilla

demo hash unchanged (ab8eb93a72c8a66b).,

-------------------------------------------------------------------------------------------
libretro-ps2.mk 9b74364f0111b2159a47b8a3b12adbb2e255604f # Version: Commits on Jun 14, 2026
-------------------------------------------------------------------------------------------
common/GS: load and run on Windows 8 by resolving placeholder APIs at runtime

The fastmem area (HostSys.cpp) and the GS local-memory mirror (GS.cpp)

called VirtualAlloc2 / MapViewOfFile3 / UnmapViewOfFile2 directly.

These are Windows 10 1803+ exports, so as ordinary imports they land

in the DLL's import table and the loader cannot resolve the module on

Windows 8 / 8.1 - the whole core fails to load before any code runs,

even though both subsystems can operate without those APIs.

Resolve the three placeholder APIs once via GetProcAddress from

kernelbase.dll (added as PCSX2_HasPlaceholderAPIs in RedtapeWindows.h)

so they stay out of the import table, and branch on availability:

- HostSys fastmem: if the APIs are missing, Create() returns null and

  vtlb_Core_Alloc falls back to no-fastmem mode (the same path already

  taken when a 4 GB region can't be placed). Map()/Unmap() call through

  the resolved pointers, which are guaranteed present because the area

  only exists when Create() found all three.

- GS wrapped memory: GSLocalMemory cannot tolerate a null mapping (it

  memsets the buffer immediately), so a Win8 fallback is provided that

  reserves a contiguous repeat*size hole, releases it, and maps the

  file view into each slot with MapViewOfFileEx (available since

  Windows 2000). A flag records which path was used so the matching

  teardown runs in GSFreeWrappedMemory.

On Windows 10+ the resolver finds all three APIs on first use and the

existing placeholder workflow runs exactly as before - only the

otherwise-unreachable absence path is new - so behavior there is

unchanged. No effect on non-Windows builds.

NOTE: unverified on a real Windows toolchain. The added code was

compile-checked against a Windows target with MinGW (typedefs, call

shapes and control flow), but the full core was not built and this has

not been run on Windows 8 or Windows 10. Needs a Win10 SDK build and a

runtime check on both before merging.,

---------------------------------------------------------------------------------------------------
libretro-snes9x-next.mk 305ab6f1ab2c8dd03a70659a43001ec39bf9ac23 # Version: Commits on Jun 14, 2026
---------------------------------------------------------------------------------------------------
tile: register-only palette gather in TILE_ROW_PRE_SSE2 (no stack roundtrip)

Replaces the storel-to-stack + 8 byte-loads + align-load palette gather

with pextrw to GPR + pinsrw straight back into xmm.  Touches the central

TILE_ROW_PRE_SSE2 macro (six callers across the math-variant n1x1

helpers) and the open-coded SSE2 path in tile_draw_row_nomath_n1x1.

Found via autovec-aware codegen audit: gcc 13 -O3 lowers

    _mm_storel_epi64((__m128i *)pix_buf, pix);

    col_buf[0] = palette[pix_buf[0]];

    ... [eight byte indices] ...

    col_buf[7] = palette[pix_buf[7]];

into SEVEN redundant 16-byte stack stores of `pix` plus eight movzbl

loads at distinct offsets.  SLP analysis treats each byte-load as

needing its own non-aliasing copy of the source vector, so the spill

multiplier is one-store-per-byte-load.  Reading the indices through

pextrw goes register-only, and pinsrw places the gathered colors

directly in xmm so the subsequent mask/blend uses no scratchpad either.

Spill counts in the generated assembly (gcc 13.3 -O3 -msse2):

  function                          before        after

  DrawTile16_Normal1x1              spills=14     spills=0

  DrawTile16Add_Normal1x1           spills=15     spills=0

  DrawTile16Sub_Normal1x1           spills=14     spills=0

  DrawTile16SubF1_2_Normal1x1       spills=14     spills=0

The max-spill loop in tile.c (.L20167, xmm=94 spills=15) is gone; the

worst residual loop now has 7 spills, mean dropped from ~14 to ~3.

Microbench (x86_64 Linux, gcc 13.3, full per-row helper -- mask, db,

gather, store):

  -O3:  150.3 -> 137.4 ms   (1.094x speedup)  213 -> 233 Mrows/s

  -O2:  149.6 -> 137.1 ms   (1.091x speedup)  214 -> 234 Mrows/s

Bit-exact against the scalar reference over 200000 random trials,

and across 4000 row calls in the bench harness.

PIX_BUF / COL_BUF stay on the macro parameter list so the six callers

compile unchanged; the unused stack arrays are DCE'd at -O2/-O3.  The

parallel NEON path (TILE_ROW_PRE_NEON, NEON branch of

tile_draw_row_nomath_n1x1) is unchanged -- on NEON, vget_lane_u8

extracts directly into a GPR without a stack roundtrip, so the same

gcc lowering bug doesn't apply; a NEON-side audit can come separately.,

----------------------------------------------------------------------------------------------
libretro-stella.mk 6fcd49280bf923e171cfe87183d97ec20ce2fc99 # Version: Commits on Jun 13, 2026
----------------------------------------------------------------------------------------------
added cassette icons for MP3/WAV files,

---------------------------------------------------------------------------------------------------
libretro-swanstation.mk 93b213d805591c4f1488339c4a16f0b4cb68d44a # Version: Commits on Jun 14, 2026
---------------------------------------------------------------------------------------------------
gpu_sw: SSE2/NEON kernels for CopyOutRow16<RGBA8> and <BGRA8>

The two desktop-output specialisations of CopyOutRow16 -- RGBA8 and

BGRA8, used whenever the host display path is a 32bpp framebuffer

(the common case on Windows/Linux/macOS GL/Vulkan backends) -- were

the only ones left without a SIMD kernel.  The RGBA5551 and RGB565

variants for mobile/GLES targets already had SSE2 and NEON paths.

Each 16-bit MASB1555 source pixel expands to a 32-bit ARGB pixel

with the same per-channel scaling pattern as the existing kernels

(<<3 on each 5-bit channel; bit 15 expanded to 0x00/0xFF for RGBA,

hard-coded to 0xFF for BGRA, matching the scalar VRAM16ToOutput

specialisations bit for bit).

The kernels process 8 pixels per iteration:

  r8 = (v & 0x1F)         << 3

  g8 = ((v >> 5) & 0x1F)  << 3

  b8 = ((v >> 10) & 0x1F) << 3

  a_hi = (v >>arith 15)   << 8     // 0xFF00 if STP bit set else 0

  pair_lo = r8 | (g8 << 8)         // R in low byte, G in high

  pair_hi = b8 | a_hi              // B in low byte, A in high

  store unpacklo(pair_lo, pair_hi)

  store unpackhi(pair_lo, pair_hi)

The 16-lane interleave on SSE2 (punpcklwd/punpckhwd) produces u32

lanes in little-endian R|G|B|A order, which is the RGBA8 byte

layout.  BGRA8 just swaps the channel pairing (B|G in pair_lo,

R|A in pair_hi) and uses a constant alpha vector since BGRA8's

VRAM16ToOutput hard-codes alpha = 0xFF.

The NEON path uses vst2q_u16 to do the same interleave: storing

{r|g, b|a} produces the [r|g, b|a, r|g, b|a, ...] u16 sequence

which reads as [R|G|B|A, R|G|B|A, ...] in u32.

Tail pixels (width % 8) keep the scalar VRAM16ToOutput call exactly

as the RGBA5551 and RGB565 kernels do.

Microbench (x86_64 Linux, gcc 13.3, full 640-pixel row, 500K iters):

  RGBA8:

    -O3: 148 -> 75 ms  (1.97x)   2161 -> 4247 Mpix/s

    -O2: 351 -> 74 ms  (4.74x)    911 -> 4317 Mpix/s

  BGRA8:

    -O3: 119 -> 66 ms  (1.80x)   2683 -> 4827 Mpix/s

    -O2: 299 -> 64 ms  (4.68x)   1070 -> 5004 Mpix/s

Bit-exact across 33000 trials over widths 0..32 (exercising the

scalar tail at every remainder), input pixels drawn from the full

65536 u16 range.,

------------------------------------------------------------------------------------------------
libretro-tyrquake.mk 5e10328faf30161923fa0f918792fbeb7772ef5b # Version: Commits on Jun 14, 2026
------------------------------------------------------------------------------------------------
r_aclip: batch clipped fan into a single D_PolysetDraw dispatch

R_AliasClipTriangle clips an alias triangle against the frustum

planes via Sutherland-Hodgman, producing a polygon of up to 7

vertices, then triangulates it as a fan around vertex 0.  The

old code emitted one D_PolysetDraw call per fan triangle, with

the source carrying a 'FIXME: do all at once as trifan?' note

above the loop.

All fan triangles already share the same pfinalverts buffer

(R_AliasClipTriangle's stack-local fv[pingpong]) and the same

facesfront flag (inherited from the input triangle), so batching

is mechanical: build a mtriangle_t array on the stack with

vertindex[0..2] = (0, t+1, t+2) for t in [0, k-3], set

numtriangles = k - 2, and dispatch once.

mtri_fan[5] covers the worst-case fan size: a 3-vertex triangle

clipped against 4 frustum planes (left, right, top, bottom) grows

to at most 3 + 4 = 7 vertices, yielding a 5-triangle fan.  Z-clip

is handled separately upstream and never inflates the polygon

past the per-plane growth of the XY clips.

Performance impact on the SW path is modest (per-call D_PolysetDraw

overhead is small after the static-spans change in the previous

commit), but the structural change matters for two reasons.  First,

the GPU compute path in D_PolysetDraw (Phase 5b-06: the

g_rhi->dispatch_3d_alias short-circuit) is dispatch-heavy -- one

GPU submit per fan triangle on a partially-clipped entity is

exactly what the unclipped batching in R_AliasPreparePoints

(commit message at r_alias.c:477) was written to avoid.  Bringing

the clipped path under the same batching treatment closes the

remaining per-triangle-dispatch hole.  Second, the loop is now

straight-line code with no global-state mutation inside the body

(no per-iter writes to r_affinetridesc.ptriangles or to a shared

mtri scratch), which simplifies reasoning about the rasterizer's

preconditions when reading this code.

Bit-identical output: the fan triangles are generated in the

same order ((0,1,2), (0,2,3), (0,3,4), ...) and consumed by

D_DrawNonSubdiv / D_DrawSubdiv in the same order (their inner

loops iterate 0..numtriangles-1 with the same per-tri math),

so the resulting pixel emissions are unchanged.

Builds clean on x86_64, aarch64, and armv7 NEON crosses.,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue when providing null for host in XMLSocket.connect()

2 participants