summaryrefslogtreecommitdiffstats
path: root/tests/compute/half-structured-buffer.slang
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2019-03-21 12:06:29 -0400
committerGitHub <noreply@github.com>2019-03-21 12:06:29 -0400
commit4e359e109d665490909ae4a1ca980b7d766c8eff (patch)
tree241aa59d33e6d7b8caa62629766923c7ba103cae /tests/compute/half-structured-buffer.slang
parent0e5b8ded11a2d425c2d3b2d5ed24ec6d8471ad87 (diff)
Hotfix/dx12 tests use hardware (#920)
* Disable Dx12 half tests. The half-calc test runs, but is not actually doing any half maths. If the code is changed such that it is, the device fails when the shader is used. This can be seen by looking at dxil-asm. * Fix using software driver for dx12 even when hardware is requested. * * Refactor Dx12 _createAdapter such that it doesn't have side effects and stores desc information * Disable half on dx12 software renderer because it crashes * * Disable erroneous warnings from dx12 * Test for adapter creation * Identify warp specifically * Structured buffer test now works on dx12. * Fix intemittent crash on dx12. Due to if a resource was initialized with data, the actual resource constructed might be larger, for alignment issues. This led to a memcpy potentially copying from after the allocated source data and therefore a crash. Now only copies the non aligned amount of data. * * Rename the test to use - style * Disable TextureCube lookup in tests, as does not produce the correct result in dx12 (will fix in future PR) * Updated hlsl.meta.slang.h that has rcp for glsl.
Diffstat (limited to 'tests/compute/half-structured-buffer.slang')
-rw-r--r--tests/compute/half-structured-buffer.slang2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/compute/half-structured-buffer.slang b/tests/compute/half-structured-buffer.slang
index e67aba55e..8f99e1bd7 100644
--- a/tests/compute/half-structured-buffer.slang
+++ b/tests/compute/half-structured-buffer.slang
@@ -1,6 +1,6 @@
//TEST(compute):COMPARE_COMPUTE:-vk -compute -profile cs_6_2 -render-features half
//Disable on Dx12 for now - because writing to structured buffer produces unexpected results
-//DISABLE_TEST(compute):COMPARE_COMPUTE:-dx12 -compute -use-dxil -profile cs_6_2 -render-features half
+//TEST(compute):COMPARE_COMPUTE:-dx12 -compute -use-dxil -profile cs_6_2 -render-features half
//TEST_INPUT:ubuffer(data=[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0], stride=16):dxbinding(0),glbinding(0),out
struct Thing