diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2021-06-08 08:48:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-08 08:48:47 -0400 |
| commit | fb50fab76a723f46026474ea5bb0226c297d1fd5 (patch) | |
| tree | f489f30ccb94a130c942d907b9f009e7cc6aabd4 /tools/gfx/cuda/render-cuda.cpp | |
| parent | 5974f3e543b56cd11f28093c5a9d7410b2b3f979 (diff) | |
Fix RWTexture issues on CUDA (#1876)
* #include an absolute path didn't work - because paths were taken to always be relative.
* Re-enable CUDA RWTexture tests.
Re-enable RWTexture1D test
Make sure tests have only single mip for RWTexture (required for CUDA)
* Fix issue with reading CUDA surface.
Re-enable working CUDA RWTextureTest.
Enable 1D case.
Diffstat (limited to 'tools/gfx/cuda/render-cuda.cpp')
| -rw-r--r-- | tools/gfx/cuda/render-cuda.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gfx/cuda/render-cuda.cpp b/tools/gfx/cuda/render-cuda.cpp index 0859524f0..64da1721d 100644 --- a/tools/gfx/cuda/render-cuda.cpp +++ b/tools/gfx/cuda/render-cuda.cpp @@ -1625,6 +1625,9 @@ public: // if (desc.allowedStates.contains(ResourceState::UnorderedAccess)) { + // On CUDA surfaces only support a single MIP map + SLANG_ASSERT(desc.numMipLevels == 1); + SLANG_CUDA_RETURN_ON_FAIL(cuSurfObjectCreate(&tex->m_cudaSurfObj, &resDesc)); } |
