shader: support GPU-selected buffer loads and packed image reads #976
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!976
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/976/head"
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?
@tototomate123 on GitHub · 2026-10-02 14:23 UTC · original
tototomate123:fix/rdna2-shader-compatibility→main· +272 −57 · 13 files · 3 commits · closed without mergingGroups shader fixes encountered during HFW bring-up, with separate commits for each change.
IMAGE_LOAD_PCKfor 32-bit texels (DMASK=1), preserving raw bits through an identityR32_UINTview.BUFFER_LOAD_FORMAT_X/XY/XYZ/XYZWfor complete 32-bit channels with identity selection and combined bounds checks.Sources: AMD RDNA2 ISA XML (
amdgpu_isa_rdna2.xml), SPIR-V scalar/vector rules, and image fetch semantics.Validation: Linux/Clang build, eight focused GPU cases, CFG, resource-tracking, and materialization tests pass. The full compute suite hits
Pm4NativeTargetGeometry, also reproduced on unchanged main (e317465).AI-assisted implementation.
@coderabbitai[bot] on GitHub · 2026-10-02 14:57 UTC · original · edited 2026-10-02 14:59 UTC
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
2acce748-3d89-4640-8864-0aa3e73b3679📥 Commits
Reviewing files that changed from the base of the PR and between
e317465d8aand140ca9fae7.📒 Files selected for processing (13)
src/graphics/host_gpu/renderer/pipeline/descriptors.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterImage.cppsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterMemory.cppsrc/graphics/shader/recompiler/frontend/decode/ImageOps.cppsrc/graphics/shader/recompiler/frontend/decode/ShaderDecoder.cppsrc/graphics/shader/recompiler/frontend/decode/ShaderDecoder.hsrc/graphics/shader/recompiler/frontend/translate/Memory.cppsrc/graphics/shader/recompiler/ir/ShaderIR.hsrc/graphics/shader/recompiler/ir/passes/ResourceMaterialization.cppsrc/graphics/shader/recompiler/ir/passes/ResourceTracking.cpptests/ResourceTrackingTests.cpptests/ShaderRecompilerComputeTests.cpptests/shaderCfgTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
📝 Walkthrough
Walkthrough
The change adds packed image-load decoding and carries packed-image metadata through resource specialization and image reads. It also expands GPU-selected indirect-buffer loads to support scalar and formatted loads, with descriptor and bounds validation. Tests cover both paths.
Suggested reviewers:
nmzik,brandostrong,techx3Priority: ⬇️ Low
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
140caThe packed image load does not use a sampler, so the reported filtering issue does not block merge. No other actionable merge risk is established.
Security Architecture Review
Security architecture risk: 🟡 Moderate · up to
140caA potential disagreement in handling newly supported image formats can cause application-wide failure. The expanded buffer reads retain important checks, but their memory-isolation guarantees are not fully established.
Retained concerns
Security review details
Security Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❓ 1
❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
Full details: Docstring Coverage
Explanation
Docstring coverage is 5.26% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 19 functions across 11 files. (2 skipped: 2 too large.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.Pull request closed