fix(shader): rect lists take explicitly interpolated fragment parameters and refuse only custom ones #261
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/261"
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 MichonGoddijn231849 on 2026-10-01T20:21:02Z.
What
With fragment-shader barycentrics (#142),
v_interp_p1/p2interpolate explicitly, so every interpolated fragment parameter is read per vertex (PerVertexKHR).BuildRectListShadersrefused every per-vertex parameter (custom per-vertex interpolation is unsupported). On a device with the barycentric feature, every rect-list draw whose fragment shader interpolates a parameter withv_interp_p1/p2was therefore skipped.The rect-list tessellation stage writes each generated corner's parameter value: the three input vertices' own, and the fourth corner's from the parallelogram barycentrics. That is what a per-vertex read of the two generated triangles needs, so explicitly interpolated parameters now go through it like the others.
Custom parameters (custom interpolation or passthrough,
InputIsCustom) stay refused, since the fourth corner has no value of its own for them.FragmentParametergains acustomflag for that (also in the disk cache entry), and the rect-list check tests it instead ofperVertex.Graphics.cpp: a per-vertex parameter builds rect-list shaders, and a custom per-vertex one is still refused.GTA V draws rect lists into its HDR scene target. On current
mainwith an RTX 5080 (which has the barycentric feature) those draws were skipped, and the world rendered black: scene luminance 0, auto-exposure at its upper clamp.Tested
Windows 11 Pro, AMD Ryzen 5 7600, NVIDIA GeForce RTX 5080 (driver 32.0.16.1074), 32 GB DDR5-5600, MinGW-w64 GCC 15.2.0.
Rect-list SPIR-V: custom per-vertex interpolation is unsupportedinto the HDR target.ctest: all tests pass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository🤖 Generated with Claude Code