[AGC/gfx1013] NGG producer has NO_PC_EXPORT and no EXP_PARAM, but fragment shader consumes live PARAM0 #868
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by guimsolutions on 2026-10-06T11:21:09Z.
Summary
A graphics pipeline captured from UFC 5 exposes an unresolved gfx1013/AGC
inter-stage interface case.
Within the same serialized graphics request:
Producer:
Consumer:
Relevant draw state includes:
VGT_SHADER_STAGES_EN = 0x02002000
SPI_VS_OUT_CONFIG = 0x00000080
decoded as:
PRIMGEN_EN = 1
PRIMGEN_PASSTHRU_EN = 1
VS_EXPORT_COUNT = 0
NO_PC_EXPORT = 1
PRIM_EXPORT_COUNT = 0
Pixel state includes a normal slot-0 interpolation mapping rather than an
explicit default-value route.
What has been ruled out
The following have been independently checked:
The request contains exactly two linked graphics programs and the producer
above is the producer serialized with this fragment shader.
No synthetic varying or interface pruning has been implemented.
Current failure
AnyPS5 correctly rejects the Vulkan pipeline because the fragment module
requires Location 0 while the translated producer exposes no corresponding
parameter output.
The unresolved question is:
What gfx1013/AGC mechanism supplies normal fragment PARAM0 for an NGG
passthrough draw with NO_PC_EXPORT=1 and no executed EXP_PARAM?
Possibilities include:
current request model
Public evidence
Public PS5 Vulkan / AGC projects were inspected, but no published artifact
contains the required combination of:
Therefore no hardware behavior has been guessed.
Alternative verification path
LLVM supports gfx1013 independently, and AMD BC-250 / Cyan Skillfish hardware
provides a possible gfx1013 test platform.
An independent LLVM gfx1013 ISA decode and gfx1013-specific Mesa/AMDGPU audit
would be useful before resorting to native PS5 evidence.
Expected behavior
Do not bypass Vulkan interface validation.
The desired fix is to identify and generically model the guest mechanism that
supplies PARAM0, if one exists.
Safety / source material
Hashes, register values and derived instruction summaries can be published.
Full proprietary game shader binaries are intentionally not attached.
Imported from boykopovar/AnyPS5. Originally posted by guimsolutions on 2026-10-06T12:19:55Z.
Update: the independent gfx1013 ISA validation is now complete.
The exact hash-identified binaries were disassembled independently with:
amdgcn)-mcpu=gfx1013This was run in an ephemeral Ubuntu 24.04 container and does not use
AnyPS5's decoder.
LLVM independently confirms the producer:
and the consumer:
The comparison therefore preserves the original contradiction with two
independent gfx1013 decoders.
We also corrected one earlier architectural assumption:
VS_EXPORT_COUNT = 0
NO_PC_EXPORT = 1
VGT_SHADER_STAGES_EN=0x02002000 still identifies NGG passthrough, and
SPI_PS_INPUT_CNTL[0]=0 still selects ordinary parameter slot 0 rather
than the default-value route.
So an AnyPS5 ISA decoding error is no longer a plausible explanation.
The remaining unknown is specifically the gfx1013 graphics-front-end
mechanism that makes PARAM0 valid between the NGG producer and the PS.
A native gfx1013 graphics/raster observation (for example BC-250 /
Cyan Skillfish) is now the remaining causal experiment. PS5 hardware
specifically is not required.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:25:20Z.
Closing: #3523 reads zero for a pixel input whose parameter the vertex stage does not export, which is this case. Reopen with the log if PPSA03541 still stops there on current main.