feat(agc): implement 10_11_11 unorm images through 32-bit uint views #805
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/805"
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 Celegans12 on 2026-10-06T05:33:38Z.
What
GFX10 format 30 (
10_11_11_UNORM) T#s throw at decode (... image descriptor uses an unsupported format); Vulkan has no such format.gfx10-rsrc.json,gfx10_format_table.py): unorm11 X and Y in bits 0-21, unorm10 Z in bits 22-31.NormalizeFormatComponent,EmitFormatStoreComponent), assuming images round like buffers; DST_SEL 1 reads 1.0f._pck, atomics, comparison sampling, render targets; two TechnicalDebt lines.image_load/image_storea 3840x2160 format-30 T#.UnpackImageTexel; the later PR carries the 1.0f constant and W check over. #757, #758 and #759 edit neighbouring emitter andShaderResources.cpplines; no conflict. #799 adds lines below theresolveImageBindingview line; no conflict. #293 adds lines to all three functions with a view line; no conflict. #788 edits thereadDccKeyscall above the DCC throw; no conflict. #546 changes theNormalizeFormatComponentrounding these loads reuse.Tested
maine289b56e: configure-DBUILD_TESTING=ON, full build,--target libs,ctest:ctest --output-on-failure)VK_DRIVER_FILES): 365/365 pass;agc_driver_flat_storeis left out there because it takes several minutes on Windows llvmpipeagc_driver_image_converted_unorm: every field value under four DST_SELs, a load-store round trip, 11 stored values (tie, +inf, NaN, denormal), format 34 under Y X Z 1 and seven throws; fails onmain, and Z Y X 1 and the format-34 row fail without the identity view.OpFDivis 1 ULP off for 66 of 6144 loaded values (lavapipe: none), so loads allow Vulkan's bound.agc_driver_graphics: format 30, every remapped format and the converted DCC clear codes; fails onmain.image_sample_lz_o); with that dispatch skipped, 0x80003cfa00 dispatches without errors.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 (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-07T07:00:00Z.
Checked on the HW oracle (gfx1035):
image_loadof every 11/11/10-bit field value matches field / (2^n - 1) correctly rounded,image_storematches RNE with NaN/negatives to 0 on 116 rows (±0, ±1, NaN, ±Inf, denormal, near-ties), DST_SEL 0/1 as implemented. Build + ctest green merged onto main, new tests fail without the change, passes on CI's lavapipe (0.3 s). Merging.