Commit 800afcc3 authored by Sunny Sachanandani's avatar Sunny Sachanandani Committed by Commit Bot

gpu: Add crash dumps for decode swap chain failures

Creating decode swap chain fails with many DXVA frames. Add dump without
crashing and alias to investigate.

Bug: 848093
Change-Id: Ibac6fa72f5764b0d3081a0e782bba3aca676ba8d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1548587Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org>
Cr-Commit-Position: refs/heads/master@{#646645}
parent 7fe9e632
......@@ -11,6 +11,8 @@
#include <utility>
#include "base/containers/circular_deque.h"
#include "base/debug/alias.h"
#include "base/debug/dump_without_crashing.h"
#include "base/feature_list.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
......@@ -1034,6 +1036,12 @@ bool DCLayerTree::SwapChainPresenter::PresentToDecodeSwapChain(
DLOG(ERROR) << "CreateDecodeSwapChainForCompositionSurfaceHandle failed "
"with error 0x"
<< std::hex << hr;
// TODO(sunnyps): Temporary for debugging decode swap chain failures.
base::debug::Alias(&hr);
D3D11_TEXTURE2D_DESC texture_desc = {};
base::debug::Alias(&texture_desc);
image_dxgi->texture()->GetDesc(&texture_desc);
base::debug::DumpWithoutCrashing();
return false;
}
DCHECK(decode_swap_chain_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment