Repository navigation
Conversation
|
Thanks for picking up MSAA! I ran it against the console's own layout library before merging. 1. 2. The console only accepts MSAA for render targets / depth. I compared 768 descs: formats 28 / 10 / 2 / 61; sizes 256², 1920×1080, 100×60 and 640×360; 2x / 4x / 8x; arrays of 1 and 6; the library's own mode and six explicit ones; with and without the RT flag. None came out identical. In 672 of them only XCL accepted the desc: the console returns 3. Where both accept (render targets), the layout differs. For 256×256 RGBA8 4x, the console gives 3 planes and 0x112000 bytes in total: This PR gives one plane of a different size (2x: 0x82000 vs the console's 0x92000). 4. Samples are interleaved inside the tile, not stored as one slice each. Texel offsets of the color plane: The sample index is part of the swizzle equation; addrlib's GFX10 tables have separate 5. In What it would take:
Until then, (The |
|
Tested on RTX 5070 Ti (driver 32.0.16.2114) at 7f727f1, merged onto
|
|
Thanks for the thorough review and testing! Commit 7f727f1 addresses all points raised:
|
|
Thanks for the second round. I checked 7f727f1 against the console's own library again, on Windows with an RX 9070 and Good: it builds, and nothing regresses – But Texel / sample offsets of plane 0 ( So colour render targets are close (5 of 6 offsets right, the plane sizes match for the RT cases), but depth MSAA, MSAA UAVs and the metadata plane fields are not there yet. Until they are, XCL's What would make it mergeable: the comparison above as a test in Also, |
|
Yes please, that would be very helpful! Please go ahead and push your comparison test to the branch. Once that's in, we can use it to dial in the MSAA UAV and RT+DS validation rules, depth tiling modes, and plane 1 metadata fields directly against the oracle until the test suite passes cleanly. |
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
| let vt = *(c as *const *const usize); | ||
| let mut res = [0u8; 0x1B40]; | ||
| let get_layout: unsafe extern "system" fn(*mut std::ffi::c_void, *mut u8) -> i32 = std::mem::transmute(*vt.add(2)); | ||
| get_layout(c, res.as_mut_ptr()); |
There was a problem hiding this comment.
AI-assisted review (OpenAI GPT-6); I inspected the test paths; I did not run tests or the game.
This oracle test creates a 4x MSAA texture and reads its resource layout, but it only prints the returned values and never queries GetTexelOffset. The new pattern test checks that each block is a permutation, which would still pass if sample indices were mapped to the wrong locations. Could this oracle assert a few (x, y, sample) offsets and the relevant plane size against the console XG result so the sample ordering has a stable regression check?
Summary