diff options
| author | Yong He <yonghe@outlook.com> | 2022-01-10 13:30:41 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-10 13:30:41 -0800 |
| commit | ad9abad220df96d2155f6825f158b7f6327b7ea8 (patch) | |
| tree | 12b146961910c1b4aa6a68b3063ec3e68d2ce23d /tools/gfx-unit-test | |
| parent | 0ac19741937e007ebb45791f53d413d21055feda (diff) | |
Various fixes to gfx. (#2074)
* Various gfx fixes.
* Fixup.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tools/gfx-unit-test')
| -rw-r--r-- | tools/gfx-unit-test/buffer-barrier-test.cpp | 2 | ||||
| -rw-r--r-- | tools/gfx-unit-test/compute-smoke.cpp | 2 | ||||
| -rw-r--r-- | tools/gfx-unit-test/create-buffer-from-handle.cpp | 2 | ||||
| -rw-r--r-- | tools/gfx-unit-test/existing-device-handle-test.cpp | 2 | ||||
| -rw-r--r-- | tools/gfx-unit-test/format-unit-tests.cpp | 2 | ||||
| -rw-r--r-- | tools/gfx-unit-test/get-buffer-resource-handle-test.cpp | 2 | ||||
| -rw-r--r-- | tools/gfx-unit-test/mutable-shader-object.cpp | 2 | ||||
| -rw-r--r-- | tools/gfx-unit-test/root-mutable-shader-object.cpp | 2 | ||||
| -rw-r--r-- | tools/gfx-unit-test/shared-buffers-tests.cpp | 2 | ||||
| -rw-r--r-- | tools/gfx-unit-test/shared-textures-tests.cpp | 2 |
10 files changed, 10 insertions, 10 deletions
diff --git a/tools/gfx-unit-test/buffer-barrier-test.cpp b/tools/gfx-unit-test/buffer-barrier-test.cpp index 0103fda4d..48e23b2b3 100644 --- a/tools/gfx-unit-test/buffer-barrier-test.cpp +++ b/tools/gfx-unit-test/buffer-barrier-test.cpp @@ -32,7 +32,7 @@ namespace gfx_test bufferDesc.format = gfx::Format::Unknown; bufferDesc.elementSize = sizeof(float); bufferDesc.defaultState = unorderedAccess ? ResourceState::UnorderedAccess : ResourceState::ShaderResource; - bufferDesc.cpuAccessFlags = MemoryType::GpuOnly; + bufferDesc.memoryType = MemoryType::DeviceLocal; bufferDesc.allowedStates = ResourceStateSet( ResourceState::ShaderResource, ResourceState::CopyDestination, diff --git a/tools/gfx-unit-test/compute-smoke.cpp b/tools/gfx-unit-test/compute-smoke.cpp index dbe22f08b..185e8aa99 100644 --- a/tools/gfx-unit-test/compute-smoke.cpp +++ b/tools/gfx-unit-test/compute-smoke.cpp @@ -39,7 +39,7 @@ namespace gfx_test ResourceState::CopyDestination, ResourceState::CopySource); bufferDesc.defaultState = ResourceState::UnorderedAccess; - bufferDesc.cpuAccessFlags = MemoryType::GpuOnly; + bufferDesc.memoryType = MemoryType::DeviceLocal; ComPtr<IBufferResource> numbersBuffer; GFX_CHECK_CALL_ABORT(device->createBufferResource( diff --git a/tools/gfx-unit-test/create-buffer-from-handle.cpp b/tools/gfx-unit-test/create-buffer-from-handle.cpp index f7e9356bc..22612dbf0 100644 --- a/tools/gfx-unit-test/create-buffer-from-handle.cpp +++ b/tools/gfx-unit-test/create-buffer-from-handle.cpp @@ -39,7 +39,7 @@ namespace gfx_test ResourceState::CopyDestination, ResourceState::CopySource); bufferDesc.defaultState = ResourceState::UnorderedAccess; - bufferDesc.cpuAccessFlags = MemoryType::GpuOnly; + bufferDesc.memoryType = MemoryType::DeviceLocal; ComPtr<IBufferResource> originalNumbersBuffer; GFX_CHECK_CALL_ABORT(device->createBufferResource( diff --git a/tools/gfx-unit-test/existing-device-handle-test.cpp b/tools/gfx-unit-test/existing-device-handle-test.cpp index efb21dd0b..cf13fe090 100644 --- a/tools/gfx-unit-test/existing-device-handle-test.cpp +++ b/tools/gfx-unit-test/existing-device-handle-test.cpp @@ -39,7 +39,7 @@ namespace gfx_test ResourceState::CopyDestination, ResourceState::CopySource); bufferDesc.defaultState = ResourceState::UnorderedAccess; - bufferDesc.cpuAccessFlags = MemoryType::GpuOnly; + bufferDesc.memoryType = MemoryType::DeviceLocal; ComPtr<IBufferResource> numbersBuffer; GFX_CHECK_CALL_ABORT(device->createBufferResource( diff --git a/tools/gfx-unit-test/format-unit-tests.cpp b/tools/gfx-unit-test/format-unit-tests.cpp index 2cba98178..55aa2768b 100644 --- a/tools/gfx-unit-test/format-unit-tests.cpp +++ b/tools/gfx-unit-test/format-unit-tests.cpp @@ -137,7 +137,7 @@ namespace gfx_test ResourceState::CopyDestination, ResourceState::CopySource); bufferDesc.defaultState = ResourceState::UnorderedAccess; - bufferDesc.cpuAccessFlags = MemoryType::GpuOnly; + bufferDesc.memoryType = MemoryType::DeviceLocal; ComPtr<IBufferResource> outBuffer; GFX_CHECK_CALL_ABORT(device->createBufferResource( diff --git a/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp b/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp index 047522688..dc0da830a 100644 --- a/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp +++ b/tools/gfx-unit-test/get-buffer-resource-handle-test.cpp @@ -27,7 +27,7 @@ namespace gfx_test ResourceState::CopyDestination, ResourceState::CopySource); bufferDesc.defaultState = ResourceState::UnorderedAccess; - bufferDesc.cpuAccessFlags = MemoryType::GpuOnly; + bufferDesc.memoryType = MemoryType::DeviceLocal; ComPtr<IBufferResource> buffer; GFX_CHECK_CALL_ABORT(device->createBufferResource( diff --git a/tools/gfx-unit-test/mutable-shader-object.cpp b/tools/gfx-unit-test/mutable-shader-object.cpp index 0880bc2d2..28ec8fb45 100644 --- a/tools/gfx-unit-test/mutable-shader-object.cpp +++ b/tools/gfx-unit-test/mutable-shader-object.cpp @@ -39,7 +39,7 @@ namespace gfx_test ResourceState::CopyDestination, ResourceState::CopySource); bufferDesc.defaultState = ResourceState::UnorderedAccess; - bufferDesc.cpuAccessFlags = MemoryType::GpuOnly; + bufferDesc.memoryType = MemoryType::DeviceLocal; ComPtr<IBufferResource> numbersBuffer; GFX_CHECK_CALL_ABORT(device->createBufferResource( diff --git a/tools/gfx-unit-test/root-mutable-shader-object.cpp b/tools/gfx-unit-test/root-mutable-shader-object.cpp index 40b57e79d..43c5fbd1f 100644 --- a/tools/gfx-unit-test/root-mutable-shader-object.cpp +++ b/tools/gfx-unit-test/root-mutable-shader-object.cpp @@ -39,7 +39,7 @@ namespace gfx_test ResourceState::CopyDestination, ResourceState::CopySource); bufferDesc.defaultState = ResourceState::UnorderedAccess; - bufferDesc.cpuAccessFlags = MemoryType::GpuOnly; + bufferDesc.memoryType = MemoryType::DeviceLocal; ComPtr<IBufferResource> numbersBuffer; GFX_CHECK_CALL_ABORT(device->createBufferResource( diff --git a/tools/gfx-unit-test/shared-buffers-tests.cpp b/tools/gfx-unit-test/shared-buffers-tests.cpp index fc9f88173..915da798b 100644 --- a/tools/gfx-unit-test/shared-buffers-tests.cpp +++ b/tools/gfx-unit-test/shared-buffers-tests.cpp @@ -25,7 +25,7 @@ namespace gfx_test ResourceState::CopyDestination, ResourceState::CopySource); bufferDesc.defaultState = ResourceState::UnorderedAccess; - bufferDesc.cpuAccessFlags = MemoryType::GpuOnly; + bufferDesc.memoryType = MemoryType::DeviceLocal; bufferDesc.isShared = true; ComPtr<IBufferResource> srcBuffer; diff --git a/tools/gfx-unit-test/shared-textures-tests.cpp b/tools/gfx-unit-test/shared-textures-tests.cpp index b2944b6e7..b83f58a78 100644 --- a/tools/gfx-unit-test/shared-textures-tests.cpp +++ b/tools/gfx-unit-test/shared-textures-tests.cpp @@ -114,7 +114,7 @@ namespace gfx_test ResourceState::CopyDestination, ResourceState::CopySource); bufferDesc.defaultState = ResourceState::UnorderedAccess; - bufferDesc.cpuAccessFlags = MemoryType::GpuOnly; + bufferDesc.memoryType = MemoryType::DeviceLocal; ComPtr<IBufferResource> outBuffer; GFX_CHECK_CALL_ABORT(device->createBufferResource( |
