Repository navigation
Conversation
…he target's samples A draw with one color target of several samples, no depth target and a one-sample rasterizer (PA_SC_AA_CONFIG) is raised to the target's sample count with every sample at the pixel centre. That was limited to draws with MSAA_ENABLE clear in PA_SC_MODE_CNTL_0; with the bit set the draw kept one sample and failed with "a color target's sample count differs from the rasterizer's". The depth-only case already scans a one-sample rasterizer into a multisampled target with MSAA_ENABLE set, under the conditions of singleSampleDepthScanRejection. The color-only case now does the same under the same conditions, so the check takes the target's name and is shared by both. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011TXsSW8zeAgKgHLCFsYwM3
sampleCoverageSupported ran while the rasterizer still had one sample, where it accepts every state. The depth raise and the color raise then set the target's sample count without asking again, so a running pixel program that reads SAMPLE_COVERAGE together with a sample-rate input ran at the raised count, a state the same check refuses for a multisampled rasterizer. Both raises now repeat the check with the raised count. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011TXsSW8zeAgKgHLCFsYwM3
|
No actionable comments were generated in the recent review. Walkthrough
Change: Bug fix Merge Risk:
|
What
A draw with one multisampled color target, no depth target and a one-sample rasterizer (
PA_SC_AA_CONFIG) is raised to the target's sample count with every sample at the pixel centre (boykopovar#4414). That was limited to draws withMSAA_ENABLEclear inPA_SC_MODE_CNTL_0. With the bit set the draw kept one sample andDecodeStatethrewa color target's sample count differs from the rasterizer's.The depth-only case already handles the same state: a one-sample rasterizer with
MSAA_ENABLEset scans into a multisampled depth target under the conditions ofsingleSampleDepthScanRejection(triangles and rectangles only, no Z interpolation or overrasterization inDB_EQAA, no pixel program reading the sample index, no sample-mask export). The color-only case now does the same under the same conditions. The check takes the target's name and is shared by both; the depth messages are unchanged.Both raises also repeat
sampleCoverageSupportedwith the raised sample count (review, c2c4e8b). It ran only before the raise, at one sample, where it accepts every state, so a running pixel program readingSAMPLE_COVERAGEtogether with a sample-rate input passed through both raises. The depth raise had that order onmain.Assassin's Creed Black Flag Resynced (PPSA28183, 01.006.038) issues such a draw after its opening scene, before the Animus sequence: one color target with 4 samples at 640x360, no depth target,
PA_SC_AA_CONFIGwith one sample,PA_SC_MODE_CNTL_0= 0x3. The title stopped there.Tested
Windows 11 Home 10.0.26200, i7-10750H, 16 GB, NVIDIA GeForce RTX 2060 6 GB, driver 610.91, WinLibs GCC 15.2.0 r7 UCRT, Release, on
main00b15fcbb0.agc_driver_graphics_testshas amsaaColorOnlystate next to themsaaDepthOnlyones: one 4-sample color target, no depth, one-sample rasterizer,MSAA_ENABLEset. It checks that the state decodes to 4 samples with every sample location at (0.5, 0.5) and no draw rejection, and that the scan is still rejected for an off-centre sample, for primitives other than triangles and rectangles, for a pixel program reading the sample index, for a sample-mask export and for alpha-to-coverage.State.cppas onmainthe test fails witha color target's sample count differs from the rasterizer's, the title's message.MSAA_ENABLEset and clear and for the depth raise, and that a coverage input alone still decodes to 4 samples. Without the repeated check those cases fail withexpected graphics rejection: SAMPLE_COVERAGE in a multisampled pixel shader.ctest -R "^agc_driver_graphics": 5 of 5 pass at c2c4e8b (agc_driver_graphics, the threeagc_driver_graphics_dump_*andagc_driver_graphics_pipeline_outside_gpu_mutex).tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.py --branch fix/agc-color-scan-msaa-enable: 30 open PRs touchtests/Graphics.cpp, 10 of them alsoState.cpp. I read those ten diffs and the two thatgh pr diffdoes not return (feat(agc): look up table images at run time through a device image table on the GPU heap (APS5_GPU_PATH) boykopovar/AnyPS5#7642, feat(agc): GPU descriptor heap on VK_EXT_descriptor_heap (APS5_GPU_HEAP) boykopovar/AnyPS5#9508, compared from their fetched heads): none changessingleSampleDepthScanRejection, the color raise or the MSAA scan tests.a color target's sample count differs from the rasterizer's(about 1700 s into the run on this machine).mainf73d791b3dtogether with fix(agc): import uneven planes of a native multisample D32S8 target without HTILE boykopovar/AnyPS5#27437, perf(shader): store 8- and 16-bit buffer components as bytes in graphics stages boykopovar/AnyPS5#27371, fix(agc): read a sparse buffer piece the guest decommitted as zeros boykopovar/AnyPS5#27451, perf(shader): read a read-only buffer's base misalignment at run time boykopovar/AnyPS5#27812 and perf(agc): build the compute pipelines of queue 0's dispatches ahead boykopovar/AnyPS5#27872: one run of 3500 s passes the draw, shows the Animus sequence and reaches the map loading screen after about 57 minutes; neithera color target's sample count differsnor the repeatedSAMPLE_COVERAGErejection occurs.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
https://claude.ai/code/session_011TXsSW8zeAgKgHLCFsYwM3
Summary by CodeRabbit