Repository navigation
ci: merge train for 65 reviewed PRs (CI batch, do not merge) - #2545
Closed
oneandonlydean wants to merge 152 commits into
Closed
oneandonlydean wants to merge 152 commits into
oneandonlydean wants to merge 152 commits into
Conversation
…an aliasing mip chain FindPending returned the first pending storage image at a texture's address that is at least as long as the surface. When transient surfaces alias (a 2-mip 1424x800 chain and, after it, a 1-mip 1424x800 surface at the same address, each with its own DCC keys), a sampled lookup of the newer single-mip surface could be served by the older chain: the chain's view was refreshed under its own keys, which the title had re-filled with a fast-clear code, so whole blocks read as the clear value instead of what the GPU had just written. An image whose length equals the surface's now wins; a longer chain still serves a descriptor of its first mips when no exact image is pending.
MoltenVK reports VK_KHR_fragment_shader_barycentric, but its SPIR-V to MSL step rejects the PerVertexKHR decoration that the barycentric path uses, so every pixel shader on that path fails to compile into a pipeline. Treat the feature as unavailable when the driver is MoltenVK, so the no-barycentric path is used. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
LibcExit called std::exit, which ran the static destructors of the libraries before the guest exit handlers. A guest handler that freed memory then locked a destroyed std::mutex, which throws, and a noexcept guest destructor ended in std::terminate. The guest handlers now run first, while the library objects are alive. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
DMA_DATA with DST_SEL 2 (V_411_NOWHERE in Mesa's src/amd/common/sid.h) reads its source into L2 and stores nothing; libSceAgc emits it as an L2 prefetch with the source address repeated as the destination. It threw as a register or prefetch destination. A prefetch of a memory source is now accepted and writes nothing: ResolveStore returns it as an empty store, so the packet stays ordered without a drain, DecodeMemoryCopy keeps rejecting it and Execute skips it. A prefetch of a register, GDS or immediate source and a register destination still throw. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…buffers With stride 0, OOB_SELECT 2 puts a fetch out of range only when NUM_RECORDS is 0, and OOB_SELECT 3 only when the offset is not below NUM_RECORDS (GFX10 table in Mesa ac_descriptors.c). A one-record descriptor therefore returns its whole element: Unreal's per-draw PrimitiveId stream is such a descriptor, and refusing it skipped the draw. A wholly out-of-range fetch reads a zero buffer.
Guest message throws registered native Windows callbacks even though Release invokes guest callbacks using System V. Register an APS5_VABI adapter in the standard and regex message throw paths and retain the native DestroyMessage helper and legacy callback storage type. Add MinGW CTest regressions with distinct or zero RCX, shared and final-release messages, typed guest catches, rethrow and normal Release. All ten new cases plus Windows exception and thread callback regressions pass three repetitions. Linux execution remains unvalidated; guest vtables and host exception paths are unchanged.
Give guest exception what, non-deleting destructor and deleting destructor slots explicit APS5_VABI types and register guest adapters. Preserve native helpers, object layouts, native exception routing and existing malloc/free ownership. Add mismatched and cleared RCX regressions for plain and message vtables, observing actual libc free calls to reject foreign or duplicate frees. Retain typed guest catch/rethrow and native exception coverage. All 27 targeted CTests pass three repetitions on Windows Release; Linux execution remains unvalidated.
…mpty PT_TLS A title built with -fstack-protector reads its guard from fs:0x28 even when it has no thread-local data and its linker emits an empty PT_TLS. The Windows TLS builder refused any guest TLS access in that case. The guard and the thread pointer live in the thread control block, which the builder already emits, so an empty PT_TLS now takes the normal path, where a zero-sized TLS block still rejects every other displacement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…RCE_DST_ALPHA_1 FORCE_DST_ALPHA_1 makes blending read a target's destination alpha as 1, as for an RGBX surface; RADV sets it for formats without alpha. The target's blend factors are rewritten to what they become with Ad = 1: DST_ALPHA is ONE and ONE_MINUS_DST_ALPHA is ZERO, SRC_ALPHA_SATURATE is ZERO in the color equation, and DST_COLOR and ONE_MINUS_DST_COLOR are ONE and ZERO in the alpha equation. Other CB_COLOR_ATTRIB bits stay rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RADV sets OUT_OF_ORDER_WATER_MARK to 7 on every GFX10 draw, also when OUT_OF_ORDER_PRIMITIVE_ENABLE is off. The watermark only tunes out-of-order rasterization, which stays rejected, so the field is accepted alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With conservative rasterization disabled, RADV programs PA_SC_CONSERVATIVE_RASTERIZATION_CNTL to NULL_SQUAD_AA_MASK_ENABLE alone, where libSceAgc writes the two INNER_TO_NORMAL overrides (0x6000). A value made of only those bits now decodes as disabled; overestimation (0x6001) keeps its checks, and every other mode is still rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use the decoded opcode offset when checking forbidden system calls. Add synthetic regressions for prefixed forms, immediate decoys, and the skip option. AI-assisted: Codex. The submitting author is responsible for every changed line.
…d hits fastTexture took the Textures() cache entry of a stage-A image record without asking whether a depth surface is resident at the address. The full lookup in cachedTexture returns DepthSurfaceTexture first; the fast path skipped it, so once a guest-memory entry existed for a depth target's descriptor, every later sampled read got that entry and saw the guest memory under the target, which a depth target never writes. The fast path now returns nothing while a depth surface is resident there, and the lookup falls back to cachedTexture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UTjpbMX7BUFMZZaxJE98zV
…draws With depth bias enabled, RADV sets POLY_OFFSET_PARA_ENABLE in PA_SU_SC_MODE_CNTL next to the front and back enables, whatever the topology; vkQuake's draws carry 0x3a46. The bit applies the offset to points and lines, so it changes nothing for triangles, and Vulkan applies depth bias only to polygons. It is now accepted with depth bias on triangle topologies; point and line draws with it are still rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A draw with DB_RENDER_CONTROL.RESUMMARIZE_ENABLE recomputes the HTILE summary of the bound depth surface from its depth values. HTILE is not modeled, so such a draw with depth and stencil tests off and no color writes changes no modeled state. It now passes the maintenance check and draws nothing, instead of throwing. Resummarize draws with depth, stencil or color work, and copy and decompress draws, still throw.
…ed lane bits The half-wave reduction read (v_readlane_b32 of lane 31 or 63 after a DPP row scan) is exact on a narrower host subgroup only when the scan's keys are the identity outside the entry EXEC. EntryLaneWalk::ZeroBit now also proves that through a constant false, a SelectU1 whose two values both prove it, and a bool Phi whose inputs all do. A mask written inside a divergent branch reaches the key select in that form, so such a scan threw that lane 63 is outside the 32-lane host subgroup.
A program's entry EXEC is the ballot of !gl_HelperInvocation in a pixel program and the ballot of true in vertex, local and tessellation programs (emitEntryPrologue). The half-wave reduction matcher only accepted the pixel form, so a wave64 vertex program that scans keys selected under its EXEC and reads lane 63 threw that the lane is outside the 32-lane host subgroup. EntryLaneWalk now also accepts a ballot of true as within the entry EXEC for those stages. Every invocation is live at their entry, and a later ballot of true holds only invocations that are still active. Pixel programs keep the !gl_HelperInvocation form, because a ballot of true there includes helper invocations. Compute and mesh programs keep their own form too, because their entry EXEC can bound the local invocation index.
CB_COLOR_ATTRIB3.RESOURCE_TYPE 0 is a 1D surface (AddrResourceType ADDR_RSRC_TEX_1D in addrlib). On GFX10, addrlib allows a 1D surface the linear and render swizzle modes (Gfx10Rsrc1dSwModeMask) and picks its swizzle pattern the same way as for a 2D surface (GetSwizzlePatternInfo only tells 3D apart). So a 1D color target one row high is laid out exactly like a 2D target one row tall, and is decoded as one. A 1D target with a standard swizzle mode is rejected as invalid; one with more than one row is not modeled and is rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r-state value A title that never writes SPI_PS_INPUT_CNTL_0 relies on its clear-state value 0, but the register was absent from the initial context, so every draw of a pixel shader with interpolants was rejected with "missing register at DWORD 0x191". All 32 SPI_PS_INPUT_CNTL registers now start at 0, as in the GFX10 clear state, both initially and after CLEAR_STATE. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…nd the SHA-256 test Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sceVideoOutAddPreVblankStartEvent threw "physical pre-vblank timing is not implemented", so titles that pace on it stopped at startup. It now registers the event like the vblank event does, and each emulated vblank tick triggers the pre-vblank start events just before the vblank events, with the pre-vblank count as data. The console's lead time is unknown. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
When a queue worker failed, it published the failure and woke the idle waiters before failing the flips of the submission it was executing. A thread returning from AgcDriverWaitIdle with that failure could still see one of those flips neither completed nor failed, which made agc_driver_flip fail with "failed flip was completed successfully" in 2 of 240 runs under four-way parallel load on lavapipe. Fail the executing submission's flips first, as ReportFailure already does for the pending submissions it drops before it notifies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ha6Tsy62AFUyp9a5Mf7vjA
A viewport whose X or Y scale is zero maps every vertex onto one line, so triangle, strip, fan and rect-list draws through it cover no pixel. Such draws, which titles use to skip work without rebuilding a command buffer, get a valid 1x1 Vulkan viewport and an empty scissor instead of throwing. Points, lines and other negative or non-finite scales still throw. Uncharted: Legacy of Thieves Collection (PPSA05684) stopped at such a draw with "unsupported viewport transform: scale=(0, -0, 1)".
Debug markers are NOP payloads the command processor skips, so a pop with no marker pushed (a title that pops a marker it pushed in an earlier command buffer) has no effect on the GPU; it no longer throws. Uncharted: Legacy of Thieves Collection (PPSA05684) pops one marker more than it pushes and stopped with "marker stack underflow".
This was referenced Oct 10, 2026
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
|
Collaborator
Author
|
Train build 38023415505 was green; the listed pull requests were merged individually. Closing. |
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.
CI batch for the pull requests below, merged onto main c72d5ce in this order. Do not merge this PR. It exists only so one full build tests them together; each PR is merged on its own after this build is green, and this PR is then closed.