Repository navigation
GS/GL: Revert invalidating depth stencil and add basic fallback for clip control. - #14547
Merged
Merged
Conversation
This reverts commit e0365c1.
lightningterror
force-pushed
the
gs_gl_misc_fixes
branch
from
June 4, 2026 20:35
dab4a34 to
f508a7f
Compare
TJnotJT
approved these changes
Jun 5, 2026
TJnotJT
left a comment
Contributor
There was a problem hiding this comment.
LGTM as long as both paths with/without clip control are tested, didn't test personally
When GLAD_GL_ARB_clip_control is not supported then change the vertex shader depth ranges to make sure it matches -1 1.
lightningterror
force-pushed
the
gs_gl_misc_fixes
branch
from
June 5, 2026 01:33
f508a7f to
1b65e18
Compare
JordanTheToaster
approved these changes
Jun 9, 2026
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,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
Revert "GS/GL: Discard stencil when not in use while using depth.
This reverts commit e0365c1.
Causes crashes on intel so not worth it for barely a 1% improvement.
GS/GL: Add basic clip control fallback.
When GLAD_GL_ARB_clip_control is not supported then change the vertex shader depth ranges to make sure it matches -1 1.
I didn't do the exp24 type of depth handling that we had previously as I didn't want too much changes as the affected usecase of this is likely small and it's mostly so I can do testing in intel hardware without having to make these edits/rebase every time.
Rationale behind Changes
Regression crash fixes, helps older intel drivers, makes my life easier when testing on intel igpus.
Suggested Testing Steps
Smoke test a few games that they still work on GL like dbz bt3, tomb raider fire shuffle effect.
Did you use AI to help find, test, or implement this issue or feature?
No.