diff options
Diffstat (limited to 'runtime/shims/d3d12_com.cpp')
| -rw-r--r-- | runtime/shims/d3d12_com.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/shims/d3d12_com.cpp b/runtime/shims/d3d12_com.cpp index e33769c58..2d7d6de71 100644 --- a/runtime/shims/d3d12_com.cpp +++ b/runtime/shims/d3d12_com.cpp | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | #include "d3d12_trace.h" | 6 | #include "d3d12_trace.h" |
| 7 | #include "d3d12_xs_device.h" | 7 | #include "d3d12_xs_device.h" |
| 8 | #include "../src/gfx10_descriptors.h" | 8 | #include "../src/gfx10_descriptors.h" |
| 9 | #include "../src/title_va_alias.h" | ||
| 9 | 10 | ||
| 10 | #include <algorithm> | 11 | #include <algorithm> |
| 11 | #include <array> | 12 | #include <array> |
| @@ -1167,6 +1168,10 @@ private: | |||
| 1167 | return; | 1168 | return; |
| 1168 | const RootArgumentLayout::Parameter* p = parameter(state, index, type); | 1169 | const RootArgumentLayout::Parameter* p = parameter(state, index, type); |
| 1169 | if (!p) return; | 1170 | if (!p) return; |
| 1171 | // A root view inside a buffer the title placed at its own VA (device slot 133) gets the console VA of the | ||
| 1172 | // buffer's GPU copy, so the shader's heap_base + VA reaches it (src/title_va_alias.h). Descriptor tables are | ||
| 1173 | // the layer's own heaps: never translated. | ||
| 1174 | if (type == rt::rootsig::ParamType::Descriptor) va = leonida::title_va_aliases().shader_va(va); | ||
| 1170 | const std::uint32_t first = first_dword(state, *p); | 1175 | const std::uint32_t first = first_dword(state, *p); |
| 1171 | write(state, first, std::uint32_t(va)); | 1176 | write(state, first, std::uint32_t(va)); |
| 1172 | // In the compute layout a descriptor table is one dword, the 32-bit VA of its first descriptor (the heaps | 1177 | // In the compute layout a descriptor table is one dword, the 32-bit VA of its first descriptor (the heaps |