fix(shader,agc): support multisampled 2D array descriptor image shape and runtime views #6635
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/6635"
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 hamb3r on 2026-10-16T00:12:04Z.
What
DescriptorImageShape::Image2DMultisampleArrayinRecompiler.hpp.ImageDimension::Dim2DMsaaArray(isArray && isMsaa) toDescriptorImageShape::Image2DMultisampleArrayinDescriptorBindingBuilder::Populateinstead of throwingmultisampled array image resources have no descriptor image shape.DescriptorImageShape::Image2DMultisampleArrayagainstTextureDimension::k2DMsaainGuestTextureResource::MatchesGuestDimension.VkImageViewType(VK_IMAGE_VIEW_TYPE_2D_ARRAYforDescriptorImageShape::Image2DMultisampleArray,VK_IMAGE_VIEW_TYPE_2DforDescriptorImageShape::Image2DMultisample) throughShaderResources,MultisampleTarget::Sampled, andDepthSurface::Sampled, including the view type in the sampled texture cache keys.agc_shader_memory,agc_driver_graphics(Recorder.cpp),agc_driver_sample_multisample_target, andagc_driver_native_multisample_depthcoveringDim2DMsaaArraydescriptor binding generation, guest texture dimension matching,VK_IMAGE_VIEW_TYPE_2D_ARRAYruntime view binding/caching, andImageMSArrayOpImageFetchexecution on MSAA color and depth targets.Tested
ctest --test-dir build-portable -R "^(agc_driver_graphics|agc_shader_memory|agc_multisample_guest_access|agc_driver_sample_multisample_target|agc_driver_native_multisample_depth)$" --output-on-failure(all passed).shader library prebuild skipped: DescriptorBindingBuilder::Populate multisampled array image resources have no descriptor image shapeerrors duringunity default resourcesshader registration are resolved.Before (
main):After (this PR):
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)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:13:42Z.
Code review location:
core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp; line 255Could you cover the runtime view type as well as descriptor generation? This shape passes
MatchesGuestDimensionforTextureDimension::k2DMsaa, which reachesMultisampleTargetTextureandMultisampleTarget::Sampled; that createsTexture(context, image, ...)using the constructor defaultVK_IMAGE_VIEW_TYPE_2D. A shader image declared as 2D multisample array needs an arrayed view (VK_IMAGE_VIEW_TYPE_2D_MULTISAMPLE_ARRAY), even when it has one layer. The new tests currently assert shape generation and dimension matching but do not verify the image view bound for that shape. Can this PR make the sampled view shape-aware and add a focused test, or clarify how the runtime path selects an array view?Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T00:14:22Z.
cc @adriadam10 @oneandonlydean
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:32:36Z.
Code review location:
core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp; line 255Correction to my terminology: Vulkan has no VK_IMAGE_VIEW_TYPE_2D_MULTISAMPLE_ARRAY enum. I meant VK_IMAGE_VIEW_TYPE_2D_ARRAY; the image multisample count is specified separately. The concern remains that Texture(context, image, ...) defaults to non-array VK_IMAGE_VIEW_TYPE_2D, so could you confirm the sampled path binds an array view for this arrayed shader shape?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:39:59Z.
I traced this into
MultisampleTarget::Sampled: it createsTexture(context, image, ...)with the defaultVK_IMAGE_VIEW_TYPE_2D, while the new descriptor shape emits an arrayed multisample image type. Unless this path is intentionally using a non-array view fork2dArrayMsaa, the descriptor and view dimensionality appear inconsistent. Could the runtime sampled view be made array-shaped and covered by a test, or could this PR reject the unsupported runtime path explicitly?Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T00:58:01Z.
Code review location:
core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp; line 255Good catch — addressed in
729558cc6and026e69fa6:VkImageViewType(VK_IMAGE_VIEW_TYPE_2D_ARRAY forDescriptorImageShape::Image2DMultisampleArray, VK_IMAGE_VIEW_TYPE_2D forDescriptorImageShape::Image2DMultisample) throughShaderResources(bothGuestImagesandImageTablepaths, plusPreviousSampled),MultisampleTarget::Sampled, andDepthSurface::Sampled, and included the view type in the sampled texture cache keys.tests/Recorder.cpp(verifyingSampledViewRange(false).type == VK_IMAGE_VIEW_TYPE_2D_ARRAYand separate caching of 2D vs. 2D-array views),tests/execution/SampleMultisampleTarget.cpp(executing an RDNADim2DMsaaArrayimage_loadshader on the 4x MSAA color target), andtests/execution/NativeMultisampleDepth.cpp(executing an arrayedImageMSArrayOpImageFetchshader on the 4x MSAA depth target).Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T00:58:03Z.
@MarcZX100 Good catch — addressed in
729558cc6and026e69fa6:VkImageViewType(VK_IMAGE_VIEW_TYPE_2D_ARRAY forDescriptorImageShape::Image2DMultisampleArray, VK_IMAGE_VIEW_TYPE_2D forDescriptorImageShape::Image2DMultisample) throughShaderResources(bothGuestImagesandImageTablepaths, plusPreviousSampled),MultisampleTarget::Sampled, andDepthSurface::Sampled, and included the view type in the sampled texture cache keys.tests/Recorder.cpp(verifyingSampledViewRange(false).type == VK_IMAGE_VIEW_TYPE_2D_ARRAYand separate caching of 2D vs. 2D-array views),tests/execution/SampleMultisampleTarget.cpp(executing an RDNADim2DMsaaArrayimage_loadshader on the 4x MSAA color target), andtests/execution/NativeMultisampleDepth.cpp(executing an arrayedImageMSArrayOpImageFetchshader on the 4x MSAA depth target).Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T00:59:16Z.
Code review location:
core/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cpp; line 255Thanks for carrying the view type through the sampling paths and cache keys, and for adding color and depth execution coverage. That resolves the runtime-view concern I raised.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T00:59:48Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hppL57-58core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hppL57-58core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppL242-246, L302, L699-700core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppL814-815core/libs/prx/libSceAgcDriver/Graphics/include/MultisampleTarget.hppL57-58core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppL230-231, L244core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppL814-815core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppL602core/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppL230-231, L302-303core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppL4657core/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppL399-400, L422-424, L681-682, L1582core/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppL725-727Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppcore/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/MultisampleTarget.cppcore/libs/prx/libSceAgcDriver/tests/execution/NativeMultisampleDepth.cppcore/libs/prx/libSceAgcDriver/tests/execution/SampleMultisampleTarget.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/GuestTextureResource.cppcore/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/include/DepthSurface.hppcore/libs/prx/libSceAgcDriver/Graphics/src/DepthSurface.cppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/shader/recompiler/Recompiler.hppcore/shader/recompiler/Recompiler.hppcore/libs/prx/libSceAgcDriver/Graphics/include/ShaderResources.hppcore/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cppcore/libs/prx/libSceAgcDriver/tests/Recorder.cppcore/libs/prx/libSceAgcDriver/tests/ShaderMemory.cppcore/shader/recompiler/Optimization/src/DescriptorBindingBuilder.cppcore/shader/recompiler/Recompiler.hppImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T03:26:09Z.
Review: APPROVED
The sampled-view shape concern from my earlier review is addressed on this head: the requested view type is threaded through the sampled color and depth paths, included in the texture cache keys, and covered by view-shape plus execution test cases. I found no remaining blocker in this change. The repository checks pass, while platform build/runtime jobs are skipped by path policy, so I am not claiming those new execution cases ran in CI.
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-16T11:34:19Z.
Review: APPROVED
Independent source review and cross-vendor validation of head
026e69fa6024858744eb1ae17995d9b84507356aon main0615cd2b82926b2f4daf1d31ac9bc7354b6d0a17: no blocker found in the reviewed change.Reproducible validation composition
fd9f3d707: clean main + this PR, plus only #6225's fixture GPU selector and #6452's WinLibs test-alignment correction. These are test-infrastructure additions; this PR's production diff and new array assertions are unchanged.41a94acb2passes the full Windows app/libraries and patchedlibsbuild, 27 Windows and 18 Linux runs. That full-build result stays at its original pin.fd9f3d707includes main0615's dispatch/pipeline/journal and shader-cache changes. Affected Windows libraries/six targets and the same six Linux targets build; conventions and registration pass. Targeted revalidation passes 21 Windows runs and 12 Linux runs: three CPU groups once each (agc_shader_memory,agc_driver_graphics,agc_shader_disk_cache), and three GPU groups x3 per physical vendor/software device (agc_multisample_guest_access,agc_driver_sample_multisample_target,agc_driver_native_multisample_depth). GPU identity is verified in every GPU process; no whole-test skips/timeouts, maximum 7.140s.APS5_PIPELINE_DISPATCHmode and journal replay are outside this matrix.GPUs tested: NVIDIA RTX5080 (
10de:2c02), driver610.62/32.0.16.1062; AMD Radeon(TM) Graphics (1002:13c0), driver32.0.21036.18; Windows11 Enterprise26200 / WinLibs GCC15.2r7. Serial fresh processes, Vulkan required, project shader cache disabled; driver caches uncontrolled.Coverage is array-shaped views of one-layer native targets, using layer zero. Source inspection confirms the decoder retains its nonzero MSAA depth/base-array refusal. Multiple resident layers, console equivalence and title startup remain untested here.
Main subsequently advanced to
aff725bf6d8d61ed33e80507421fd131aeae1305(#5884 mesh line-strip output and #5886 unnormalized-sampler base-level proof). I inspected the relevant hunks: the native view-type/cache plumbing and sampler-free array-load paths are unchanged, and the complete merge preview is clean. These later commits are outside the executed pins above; no unrelated matrix restart. AI-assisted: Codex; I ran these local builds/tests.Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T19:45:59Z.
cc @adriadam10 @oneandonlydean rebase
Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T22:29:07Z.
cc @adriadam10 @oneandonlydean rebased again
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T22:31:01Z.
I have a focused candidate for issue #6957: sample a multisampled target in
SHADER_READ_ONLY_OPTIMALafter storage writes, then restoreGENERALbefore attachment or storage use. The behavior is distinct from this PR, but both changeMultisampleTarget::Sampledand the borrowedTextureview path. The layout update needs to preserve the arrayviewTypeand cache key here. No urgency; could you advise whether you prefer #6635 to land first so I can rebase the layout fix onto it, or the layout fix to go first so you can rebase this PR? I have not opened the follow-up yet.Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-16T22:49:27Z.
Thanks for checking, @MarcZX100!
It would be great if #6635 lands first since it's already approved and ready for the maintainers. If you don't mind holding off on opening yours until it's merged, that will prevent any unnecessary conflicts.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-16T22:57:46Z.
Thanks for the guidance. I had opened #6971 shortly before seeing your reply, after #6683’s author confirmed that either order was workable. I have now marked #6971 as draft to avoid parallel review/merge conflicts. Once #6635 lands, I’ll rebase it and recheck the array-view/cache-key integration before marking it ready.
Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-17T22:45:53Z.
Hi @adriadam10 @oneandonlydean, hope you're doing well! Just bumping this so it doesn't get lost in the backlog. The changes are purely focused on optimizations, all checks are passing, and there are no merge conflicts. Would love to get your eyes on it when you have a few minutes!
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-17T22:59:36Z.
Refining this report after checking the shader type and specification:
FetchProgram(arrayed)uses Sampled=1, yet explicitly emitsImageMSArray. That capability is for multisampled array storage images (Sampled=2) in the SPIR-V specification. The more portable proposed correction is to remove the unnecessaryif (arrayed) module.EmitCapability(spv::CapabilityImageMSArray);declaration, preserving the sampled-array type and fetch.I compiled an independent
usampler2DMSArraytexelFetch control with the installed glslang for Vulkan1.2: it emits onlyOpCapability Shader, withOpTypeImage %uint 2D 0 1 1 1 Unknown, and passesspirv-val --target-env vulkan1.2. This confirms the capability boundary; the actual native-depth fixture still needs a hardware rerun with that declaration removed. The actual fixture is now validated below after that replay finished.Earlier hardware control: our main55 integration with the older #6635 array-view work and #7233 completion proof emitted54 VUID08740 errors per GPU in the native clear/refusal groups repeated3x. Enabling the host storage-MSAA feature eliminated those errors, with both groups3/3 on RTX5080 (32.0.16.1062) and AMD Radeon Graphics (32.0.21036.18), Windows11 Enterprise26200 / Khronos1.4.363. That control satisfies the declared capability, but introduces an unnecessary feature prerequisite and is not the preferred portable fix. Linux/lavapipe passed its available cases; no Linux validation layer is available.
These are integration/control results, not execution of unchanged latest head
ebc6ea3. No production feature-negotiation change is proposed. The separate command-pool reset issue remains #7311. AI-assisted: Codex; author responsible.Actual fixture validation completed: focused one-line capability removal9e17f1522 is in integration4c2cab/main5de. The prior host-feature addition is reverted. Both native clear/refusal groups pass3/3 on each physical GPU with Khronos1.4.363 loaded and zero observed VUIDs, while the available Linux cases also pass3/3. Broader volume/packed-color/publication controls pass in that same composition. This validates the sampled-only correction on our composition, not unchanged latest #6635 head. Please prefer this capability removal to the earlier feature-enabling control.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T01:58:18Z.
I checked the current head
ed85bd05c:FetchShader(arrayed)no longer emitsCapabilityImageMSArray, so the capability concern in the review appears addressed in source. The reported native-depth execution was on the earlier026e69fa6head, and this current head's hosted build/test jobs are skipped. Could you confirm the focusedagc_driver_native_multisample_depthtest passes oned85bd05cafter the capability removal?Imported from boykopovar/AnyPS5. Originally posted by hamb3r on 2026-10-18T02:02:49Z.
@Amoenus Thank you for the thorough SPIR-V specification breakdown (
Sampled=1vsSampled=2) and the multi-GPU control validation. We aligned with that portable direction: headed85bd05cremoves the unnecessaryif (arrayed) module.EmitCapability(spv::CapabilityImageMSArray);declaration inFetchShaderdirectly, avoiding any extra host feature prerequisites.@MarcZX100 Confirmed: executed the focused
agc_driver_native_multisample_depthtest directly on headed85bd05con physical hardware:VK_LAYER_KHRONOS_validation): clean pass with 0 validation errors / 0 VUIDs;VUID-VkShaderModuleCreateInfo-pCode-08740is completely resolved.ctest -R agc_driver_native_multisample_depth -Voutput (with Khronos validation layer)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T02:07:30Z.
Thanks for rerunning the current head. The 12/12 focused native-depth cases with no validation-layer errors on the capability-removal head answer the current-head validation request; the earlier host-feature workaround is unnecessary. I have no further request on this capability issue.