Repository navigation
Playability, shader coverage, D3D12 views/barriers, and multi-placeholder xmem - #3
Open
sahajiscoding wants to merge 7 commits into
Open
sahajiscoding wants to merge 7 commits into
sahajiscoding wants to merge 7 commits into
Conversation
…-only depth rendering Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…laceholder xmem mapping Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
| Some(match format.0 { | ||
| 27..=32 => DXGI_FORMAT_R8G8B8A8_UNORM, | ||
| 87 | 90 | 91 => DXGI_FORMAT_B8G8R8A8_UNORM, | ||
| 87 | 88 | 90..=93 => DXGI_FORMAT_B8G8R8A8_UNORM, |
There was a problem hiding this comment.
Suggestion: For same-sized B8G8R8X8 planes, presentation skips the blitter and copies into a B8G8R8A8 swap buffer; these formats are incompatible for CopyResource.
Assessment: 🟠 Major · 🔁 Occurrence: Sometimes · 🏷️ Api mismatch
Prompt for AI Agent 🤖
This is a comment left during a code review.
**Path:** crates/victory-gpu/src/host.rs
**Line:** 2460:2460
**Comment:**
*Api Mismatch: For same-sized B8G8R8X8 planes, presentation skips the blitter and copies into a B8G8R8A8 swap buffer; these formats are incompatible for `CopyResource`.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fixCo-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…litter RTV roundtrip Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…tiles/inplace coherency, and console instruction emulation Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
…nd map_unwrap_or lints Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Summary
1. Adaptive PSO compilation & non-blocking pipeline cache (
crates/victory-gpu/src/pipeline/{make.rs,library.rs})VecDeque) promoting newly needed pipelines ahead of backlog.(n * 3 / 4).clamp(2, 12)with inline fallback if workers fail to spawn.THREAD_PRIORITY_LOWESTsaver thread (schedule_save) with burst deferral (20 s/60 sunder heavy queue depth),SAVE_LOCKserialization, raisedEARLY_MAXto 16 384, and unique temp paths for atomic rename safety.2. Read-only depth + SRV barrier preservation (
crates/victory-gpu/src/draw.rs)depth_flags), stencil presence (depth_has_stencil), and simultaneous depth sampling (depth_sampled) so read-only depth+SRV passes stay inDEPTH_READ | SHADER_RESOURCE(0xE0) instead of thrashing barriers.3. Full sRGB/linear typeless view promotion & exact null RTV/DSV descriptors (
crates/victory-gpu/src/{resource.rs,descriptor.rs,descriptor/host.rs,host.rs,capture.rs})R8G8B8A8,B8G8R8A8,B8G8R8X8,BC1,BC2,BC3,BC7), added explicit dimension/MSAA/array RTV and DSV descriptors, addedFormat == 0->view_formatfallback across RTV/DSV/SRV/UAV, and enabledB8G8R8X8*present/swap and diagnostics capture.4. Shader compiler coverage & safety (
crates/victory-shader/src/emit/lower.rs)image_gather4_c,image_gather4_c_o,image_gather4_c_lz,image_gather4_c_lz_o,image_gather4_c_l,image_gather4_c_l_oto DXILdx.op.textureGatherCmp.f32(opcode74) with comparison sampler and programmable signed 6-bit offsets, and enabledimage_gather4/image_gather4_oviadx.op.textureGather.f32(opcode73), unlocking PCF shadow maps and SSAO/bilateral passes.Texture2DArray(7, 3)), MSAAimage_load/image_get_resinfo(Texture2DMS/Texture2DMSArray), Cube & MSAA T# descriptor size queries indescriptor_word, and explicit mip UAV writes (image_store_mip).lds_dwords(pred::IULT) to prevent out-of-bounds group-shared memory GPU faults.5. Multi-placeholder physical page mapping (
crates/victory-hle/src/modules/xmem.rs)xmem::map()to coalesce split adjacent placeholders viaMEM_COALESCE_PLACEHOLDERSand walk remaining placeholder boundaries viaVirtualQueryExchunking (with partial rollback on failure), enabling seamless remapping across fractured placeholder ranges.Validation
45456538760passed cleanly:Clippy(-D warnings)Clippy, diagnostics build(-D warnings)Tests(including realdxil.dllDXIL validation for gather4/gather4_c/MSAA/Cube/LDS/image_store_mip, D3D12 WARP tests, and real Windows multi-placeholderxmemtests)CodeAnt-AI Description
Bring missing world effects back and expand console shader compatibility
What Changed
Impact
✅ Fewer missing world, shadow, and meshlet effects✅ Fewer frame stalls during pipeline compilation✅ More 64-lane shaders run on 32-lane GPUs💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.