Skip to content

rebase to master#6

Merged
akmed772 merged 120 commits into
akmed772:masterfrom
86Box:master
Mar 11, 2025
Merged

rebase to master#6
akmed772 merged 120 commits into
akmed772:masterfrom
86Box:master

Conversation

@akmed772

Copy link
Copy Markdown
Owner

No description provided.

OBattler and others added 30 commits March 5, 2025 21:52
PADDSIW, PSUBSIW, PMULHRW (named PMULHRWC in the code as recognized by some assemblers), PMULHRIW, PDISTIB, PMACHRIW, PAVEB, PMAGW, PMVZB, PMVNZB, PMVLZB, PMVGEZB, FTSTP, FRINT2, FRINEAR, FRICHOP are implemented for Cyrix 6x86MX. Cyrix 6x86(L) only has the last 4 instructions.
Add EMMI and the 4 missing FPU instructons to the Cyrix 6x86MX
IBM PS/55 DA2: Fix various drawing issues in graphics mode
Change the name of the define used to indicate SVGA multi-monitor-capable cards
1. Follow the Mach32 manual more closely regarding vblank support.
2. The subsystem status now takes account of the other bits more accurately.
3. The Mach32 PCI, when used with the ATI 68860 ramdac, has its own bpp's when in accelerator mode, separate from the VGA compatible side, so fix this accordingly.
4. Reset the vram when a mapping change occurs, should clear the messups in the ATI Mach8/32 accel video mode tests.
8514/A compatible changes of the day (March 6th, 2025)
Fixes a crash when clicking the icon
Initialize the sound icon menu pointer
Fixes for the ports page of the settings dialog
Disable Windows 11 rounded window corners when they cover the emulated screen
jriwanek and others added 28 commits March 10, 2025 05:28
General Improvements, Cleanups and additions
OpenGL 3.x screenshots are now processed
Call `glViewport` with correct function pointer
@akmed772 akmed772 merged commit 6de8448 into akmed772:master Mar 11, 2025
akmed772 pushed a commit that referenced this pull request Mar 18, 2026
* Phase 5+6: Complete Voodoo ARM64 pixel pipeline

Implements the full remaining pixel rendering pipeline:

**Phase 5 (Fog + Alpha Test + Blend):**
- Fog: FOG_CONSTANT, FOG_ADD, FOG_MULT modes
- Fog sources: w_depth table lookup, Z, alpha, W
- Alpha test: all 8 AFUNC comparison modes (NEVER, LESSTHAN, EQUAL,
  LESSTHANEQUAL, GREATERTHAN, NOTEQUAL, GREATERTHANEQUAL, ALWAYS)
- Alpha blend: dest_afunc (9 modes: AZERO, ASRC_ALPHA, A_COLOR,
  ADST_ALPHA, AONE, AOMSRC_ALPHA, AOM_COLOR, AOMDST_ALPHA,
  ACOLORBEFOREFOG)
- Alpha blend: src_afunc (9 modes: AZERO, ASRC_ALPHA, A_COLOR,
  ADST_ALPHA, AONE, AOMSRC_ALPHA, AOM_COLOR, AOMDST_ALPHA, ASATURATE)

**Phase 6 (Framebuffer Write + Dithering):**
- Dithering: 4x4 and 2x2 dither pattern support
- RGB565 pack with dither or direct shift-and-mask
- Framebuffer write: linear and tiled addressing modes
- Depth write: alpha-buffer and non-alpha-buffer paths
- Per-pixel state increments: dRdX, dGdX, dBdX, dAdX, dZdX, dSdX,
  dTdX, dWdX (for both TMUs + global W)
- Pixel and texel counter updates

Total addition: 677 lines of ARM64 codegen completing the full
scanline rasterizer from prologue through per-pixel write-back.


* Add JIT debug logging runtime toggle to Voodoo card settings

Replace compile-time #define VOODOO_JIT_DEBUG with a CONFIG_BINARY UI
checkbox ("JIT Debug Logging", default OFF). When enabled, opens
<vm_dir>/voodoo_jit.log and writes all JIT GENERATE/EXECUTE/HIT
diagnostics there via fprintf. When disabled, no file is created and
no logging overhead. The toggle is purely observational and never
affects the JIT-vs-interpreter control flow.


* Add debugging docs, test script, and gitignore updates


* Fix Voodoo 2 detection failure when Dynamic Recompiler is enabled

Move jit_debug config entry outside the #ifndef NO_CODEGEN guard so the
voodoo_config[] array structure is stable regardless of codegen state.
Previously, both recompiler and jit_debug entries were conditionally
compiled, causing config field index misalignment when loading VMs saved
with a different codegen setting.


* Move jit_debug config outside NO_CODEGEN guard in Banshee configs

Apply the same fix from the voodoo_config[] array (a1163d6) to
banshee_sgram_config[], banshee_sgram_16mbonly_config[], and
banshee_sdram_config[]. The jit_debug entry is now unconditionally
present in all four device config arrays for consistency.


* Fix Voodoo 2 non-perspective texture alignment bug + add JIT verify mode

ARM64 STR_X to STATE_tex_s (offset 188) silently encoded as offset 184
due to unsigned-offset 8-byte alignment truncation. The non-perspective
texture path wrote tex_s to the wrong location, causing every pixel to
sample from texture column S=0. Fixed by using STR_W (4-byte aligned).

Also adds JIT verification mode (jit_debug=2) that runs both JIT and
interpreter per scanline and compares pixel output for debugging.
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.

7 participants