feat(agc): support guest 4_4 texture format #16253
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16253"
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 akkadbakkad89 on 2026-11-06T00:31:53Z.
What
Maps a GFX10 image-descriptor format that titles can describe but the driver rejected with
unsupported guest texture format(the 5_5_5_1 half of this PR was dropped — it duplicated #14628):4_4_UNORM, channels least-significant-first[G4][R4]) ->VK_FORMAT_R4G4_UNORM_PACK8, sampled-only: numeric class +GetFormatInfo{4,4}at{0,4}. No storage view (1-byte packed elements fail the conversion path's 2/4-byte check) and it needsVK_EXT_4444_formats; unsupported hosts keep the existing throw.Format names/layouts follow PAL's
gfx10_3.yaml/gfx9_plus_merged_enum.h(least-significant-channel-first naming) and Mesa'sac_translate_tex_dataformat. The remaining unmapped defined IDs (depth-stencil aspect plumbing, 2x1-element 422 formats, USCALED/SSCALED shader scaling, Fmask/video/reserved) are recorded in the libSceAgcDriver debt file.Tested
Windows 11, RTX 3070 (driver 617.42):
ctest --test-dir build -R 'buffer_format|gcn_buffer|gpu_buffer|converted_unorm|packed16|image_pck|texture_format'withANYPS5_REQUIRE_VULKAN=1,ANYPS5_NO_SHADER_CACHE=1,VK_LAYER_PATH=D:\VulkanSDK\Bin,VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation- 12/12 pass; the 5_5_5_1 work (incl.agc_driver_image_packed16_storage_135) was later dropped inaa70770for duplicating #14628, and the same suite pluspacked16133/134/136 storage,agc_driver_image_packed16_loadandagc_driver_graphicsre-passed on the reduced diff.vulkaninfoSDK.exe --summaryconfirms the layer loads (adding layers "VK_LAYER_KHRONOS_validation"); nowas not found but was requested, noVUID-output. Not run against a title: no capture exercising format 137 exists.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)