diff options
Diffstat (limited to 'runtime/shims/xbox_present.cpp')
| -rw-r--r-- | runtime/shims/xbox_present.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/shims/xbox_present.cpp b/runtime/shims/xbox_present.cpp index 003b0d3fe..0b05ad4b9 100644 --- a/runtime/shims/xbox_present.cpp +++ b/runtime/shims/xbox_present.cpp | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | #include <atomic> | ||
| 1 | #include "xbox_present.h" | 2 | #include "xbox_present.h" |
| 2 | 3 | ||
| 3 | #include "../src/vulkan_present.h" | 4 | #include "../src/vulkan_present.h" |
| @@ -128,6 +129,15 @@ HRESULT XboxPresentation::PresentX(UINT plane_count, const XboxPresentPlaneParam | |||
| 128 | return result; | 129 | return result; |
| 129 | } | 130 | } |
| 130 | 131 | ||
| 132 | { // LOCAL DIAGNOSTIC: what the first presents show | ||
| 133 | static std::atomic<int> shown{0}; | ||
| 134 | if (shown.fetch_add(1, std::memory_order_relaxed) < 8) | ||
| 135 | for (UINT i = 0; i < plane_count; ++i) | ||
| 136 | std::fprintf(stderr, "[rt] localdbg: PresentX plane %u/%u resource=%p count=%u src=%p dest=%p cs=%d flags=0x%x\n", | ||
| 137 | i, plane_count, planes[i].ppResources ? static_cast<void*>(planes[i].ppResources[0]) : nullptr, | ||
| 138 | planes[i].ResourceCount, static_cast<const void*>(planes[i].pSrcViewRects), | ||
| 139 | static_cast<const void*>(planes[i].pDestPlacementBase), planes[i].ColorSpace, planes[i].Flags); | ||
| 140 | } | ||
| 131 | // All planes carry the token of one frame. | 141 | // All planes carry the token of one frame. |
| 132 | const std::uint64_t token = planes[0].Token; | 142 | const std::uint64_t token = planes[0].Token; |
| 133 | for (UINT i = 0; i < plane_count; ++i) { | 143 | for (UINT i = 0; i < plane_count; ++i) { |