Light stand-ins: placed texture views resolved; the stencil check reads the view's plane, not its levels
Run final-3 (2026-11-27 02:03): the reflections stand-in still never ran; the new line named the miss program
06bb6e728c7c99bf with its depth (0,1000) and most textures unresolved ("-"): those are views of textures the
title placed in its memory (View::Placed), which the lookup took for nothing. They are resolved through
placed_texture now, as the draw path does. The stencil check of 296ae68 read word 5 of the view description as
the plane; the union of D3D12_SHADER_RESOURCE_VIEW_DESC starts at word 4, so word 5 is the levels and the plane is
word 6: every one-level 2D view counted as a stencil plane (final-3 logged the diffuse stand-in's depth place
(0,464) as one, and the reflections' cube maps). Fixed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
d226814d91
commit
bda6e597da
1 file changed
+11
-2
@@ -3801,7 +3801,12 @@ impl State {
|
||||
let Some(Root::Table(table)) = self.roots_ref(true).get(usize::from(slot)) else {
|
||||
return None;
|
||||
};
|
||||
let resource = match crate::descriptor::view(table + u64::from(offset) * 4)? {
|
||||
// A view of a texture the title placed in its memory is a placed
|
||||
// record; its host texture is the one placed_texture names (run
|
||||
// final-3: the miss program's depth and most of its textures).
|
||||
let view = crate::descriptor::view(table + u64::from(offset) * 4)?;
|
||||
let view = crate::descriptor::host::placed_texture(&view).unwrap_or(view);
|
||||
let resource = match view {
|
||||
View::Shader(r, _) | View::Unordered(r, ..) => r,
|
||||
_ => return None,
|
||||
};
|
||||
@@ -3831,10 +3836,14 @@ impl State {
|
||||
// with its normal to the camera (flat floors). Seen in the capture
|
||||
// haze2: after the _ReflectiveCaustics variant 34fb51b8a0312e82 the
|
||||
// place (0,464) named #6481's stencil plane.
|
||||
// (The description's words are D3D12_SHADER_RESOURCE_VIEW_DESC's: its
|
||||
// union starts at word 4, so a 2D view's plane is word 6; word 5 is
|
||||
// its levels, which run final-3 mistook for the plane.)
|
||||
fn stencil_view(view: Option<View>) -> bool {
|
||||
let view = view.map(|v| crate::descriptor::host::placed_texture(&v).unwrap_or(v));
|
||||
match view {
|
||||
Some(View::Shader(_, Some(d))) => {
|
||||
matches!(crate::resource::pc_format(d[0]), 22 | 47) || (d[1] == 4 && d[5] == 1)
|
||||
matches!(crate::resource::pc_format(d[0]), 22 | 47) || (d[1] == 4 && d[6] == 1)
|
||||
}
|
||||
_ => false,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user