Revert "Disable debug layer logger"
This reverts commit 52a588f3c9
.
Reason for revert: added a workaround to filter out messages.
Original change's description:
> Disable debug layer logger
>
> This logger is producing too much output on Windows and causing
> Chromium's gtest harness to kill the tests.
>
> Tbr=cwallez@chromium.org
> No-Try: true
> Bug: chromium:1130483
> Change-Id: I1990bc800bbb7eda62901d14f656375c30fbeef2
> Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/28740
> Reviewed-by: Austin Eng <enga@chromium.org>
> Commit-Queue: Austin Eng <enga@chromium.org>
TBR=cwallez@chromium.org,enga@chromium.org
Bug: chromium:1130483
Change-Id: Ifeee73838a957f619dfdb977f21585fe8abacc3b
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/28760
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Bryan Bernhart <bryan.bernhart@intel.com>
This commit is contained in:
parent
5b4e5fbe1f
commit
6db3a24c19
|
@ -169,6 +169,11 @@ namespace dawn_native { namespace d3d12 {
|
|||
ComPtr<ID3D12InfoQueue> infoQueue;
|
||||
ASSERT_SUCCESS(mD3d12Device.As(&infoQueue));
|
||||
|
||||
// To avoid flooding the console, a storage-filter is also used to
|
||||
// prevent messages from getting logged.
|
||||
DAWN_TRY(CheckHRESULT(infoQueue->PushStorageFilter(&filter),
|
||||
"ID3D12InfoQueue::PushStorageFilter"));
|
||||
|
||||
DAWN_TRY(CheckHRESULT(infoQueue->PushRetrievalFilter(&filter),
|
||||
"ID3D12InfoQueue::PushRetrievalFilter"));
|
||||
|
||||
|
@ -182,6 +187,7 @@ namespace dawn_native { namespace d3d12 {
|
|||
ComPtr<ID3D12InfoQueue> infoQueue;
|
||||
ASSERT_SUCCESS(mD3d12Device.As(&infoQueue));
|
||||
infoQueue->PopRetrievalFilter();
|
||||
infoQueue->PopStorageFilter();
|
||||
}
|
||||
|
||||
ResultOrError<DeviceBase*> Adapter::CreateDeviceImpl(const DeviceDescriptor* descriptor) {
|
||||
|
|
|
@ -187,6 +187,11 @@ void DawnTestEnvironment::SetEnvironment(DawnTestEnvironment* env) {
|
|||
DawnTestEnvironment::DawnTestEnvironment(int argc, char** argv) {
|
||||
ParseArgs(argc, argv);
|
||||
|
||||
if (mEnableBackendValidation) {
|
||||
mPlatformDebugLogger =
|
||||
std::unique_ptr<utils::PlatformDebugLogger>(utils::CreatePlatformDebugLogger());
|
||||
}
|
||||
|
||||
// Create a temporary instance to select available and preferred adapters. This is done before
|
||||
// test instantiation so GetAvailableAdapterTestParamsForBackends can generate test
|
||||
// parameterizations all selected adapters. We drop the instance at the end of this function
|
||||
|
|
Loading…
Reference in New Issue