File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -778,13 +778,9 @@ static void TestSmallBuffers(const TestContext& ctx)
778778 CHECK_HR (ctx.allocator ->CreateResource (&allocDesc, &resDesc, D3D12_RESOURCE_STATE_COMMON,
779779 nullptr , &resWithAlloc.allocation , IID_PPV_ARGS (&resWithAlloc.resource )));
780780 CHECK_BOOL (resWithAlloc.allocation && resWithAlloc.allocation ->GetResource ());
781- // May or may not be committed, depending on the PREFER_SMALL_BUFFERS_COMMITTED
782- // and TIGHT_ALIGNMENT settings.
781+ // Expected to be committed unless tight alignment is supported.
783782 const bool isCommitted = resWithAlloc.allocation ->GetHeap () == NULL ;
784- if (isCommitted)
785- wprintf (L" Small buffer %llu B inside a custom pool was created as committed.\n " , resDesc.Width );
786- else
787- wprintf (L" Small buffer %llu B inside a custom pool was created as placed.\n " , resDesc.Width );
783+ CHECK_BOOL (isCommitted != (ctx.allocator ->IsTightAlignmentSupported () != FALSE ));
788784 }
789785
790786 // Test 3: NEVER_ALLOCATE.
You can’t perform that action at this time.
0 commit comments