diff --git a/README.md b/README.md index ab576e98f..9985d82b1 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,6 @@ allocatorDesc.Device = Device; allocatorDesc.Adapter = Adapter; // Use CheckFeatureSupport -allocatorDesc.IsUMA = true; allocatorDesc.ResourceHeapTier = D3D12_RESOURCE_HEAP_TIER_1; ComPtr residency; // Optional diff --git a/src/fuzzers/D3D12ResourceAllocatorFuzzer.cpp b/src/fuzzers/D3D12ResourceAllocatorFuzzer.cpp index 08d6a5e6a..526d1150c 100644 --- a/src/fuzzers/D3D12ResourceAllocatorFuzzer.cpp +++ b/src/fuzzers/D3D12ResourceAllocatorFuzzer.cpp @@ -61,19 +61,11 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) { allocatorDesc.Adapter = dxgiAdapter; // Populate the options. - D3D12_FEATURE_DATA_ARCHITECTURE arch = {}; - if (FAILED(d3dDevice->CheckFeatureSupport(D3D12_FEATURE_ARCHITECTURE, &arch, sizeof(arch)))) { - return 0; - } - - allocatorDesc.IsUMA = arch.UMA; - D3D12_FEATURE_DATA_D3D12_OPTIONS options = {}; if (FAILED(d3dDevice->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS, &options, sizeof(options)))) { return 0; } - allocatorDesc.ResourceHeapTier = options.ResourceHeapTier; if (FAILED( diff --git a/src/gpgmm/d3d12/ResourceAllocatorD3D12.h b/src/gpgmm/d3d12/ResourceAllocatorD3D12.h index 41f216430..bea9d9b6d 100644 --- a/src/gpgmm/d3d12/ResourceAllocatorD3D12.h +++ b/src/gpgmm/d3d12/ResourceAllocatorD3D12.h @@ -165,14 +165,6 @@ namespace gpgmm::d3d12 { */ EVENT_RECORD_OPTIONS RecordOptions; - /** \brief Specifies if unified memory architecture (UMA) support is enabled. - - Used to determine if resource heaps can exist in shared memory. - - Required parameter. Use CheckFeatureSupport to determine if supported. - */ - bool IsUMA; - /** \brief Specifies the adapter's tier of resource heap support. Used to determine if resource categories (texture and buffers) can co-exist in the diff --git a/src/samples/D3D12Sample.cpp b/src/samples/D3D12Sample.cpp index 6343a08ff..60bd59ddc 100644 --- a/src/samples/D3D12Sample.cpp +++ b/src/samples/D3D12Sample.cpp @@ -59,7 +59,6 @@ HRESULT Init() { gpgmm::d3d12::ALLOCATOR_DESC desc = {}; desc.Adapter = adapter3; desc.Device = device; - desc.IsUMA = arch.UMA; desc.ResourceHeapTier = options.ResourceHeapTier; Microsoft::WRL::ComPtr resourceAllocator; diff --git a/src/tests/D3D12Test.cpp b/src/tests/D3D12Test.cpp index 00245d052..f1c2937ec 100644 --- a/src/tests/D3D12Test.cpp +++ b/src/tests/D3D12Test.cpp @@ -78,7 +78,6 @@ namespace gpgmm::d3d12 { // Required parameters. desc.Adapter = mAdapter; desc.Device = mDevice; - desc.IsUMA = mIsUMA; desc.ResourceHeapTier = mResourceHeapTier; // Pre-fetching is enabled by default. However for testing purposes, pre-fetching changes