summaryrefslogtreecommitdiffstats
path: root/tests/render
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2018-04-11 15:55:44 -0400
committerGitHub <noreply@github.com>2018-04-11 15:55:44 -0400
commit6322983fa4dc84ef1e9dd8fad54d4c1580436e67 (patch)
tree01da4669cd385e827d4059e06336f165df162ed7 /tests/render
parentc4004b32ca2c0effb455ec847114240db3cb993b (diff)
Feature/dx12 compute (#483)
* Dx12 rendering works in test framework. * Turn on dx12 render tests. * Getting simpler dx12 compute tests to work. * With expected data in test - check for specialized and then for the default, so that multiple test can share the same expected data, but specialized cases can still be set. * Fixed construction and binding on dx12 textures. * Control which render apis used in test from command line. * Small aesthetic fixes in render-test/main.cpp. * Fix binding problem for uavs/srvs dx12. Previously tried to create srv/uav for StorageBuffers (like dx11 does), but the binding breaks as you can end up with two srvs using the same register. First pass at fixing problems with Texture creation for dx12 - assertions were hit with 3d or array textures. * Fixes to improve Dx12 setup shader resource views for cubemaps/arrays. * Fixed d3d12 textureSamplingTest - problem was that cubemap/array textures were not being uploaded correctly. * Changed the order of how binding of constant buffers (as just set on the Renderer) indexes. Previously they were given the lowest indices, but they clashed with the indices from the 'Binding'. Changing this means all tests run on d3d12. * Add code to allow use of warp (although not command line switchable yet). Fix problem setting up raw UAV - as identified by warp. * Added RenderApiUtil - which can detect if a render api is potentially available. * Moved render flag testing/parsing into RenderApiUtil. * Fix signed/unsigned warning. * Fixes around enums prefixed with k on the review of feature/dx12 compute branch. * Remove explicit -dx12 line in tests, as all can currently be generated from dx11 tests.
Diffstat (limited to 'tests/render')
-rw-r--r--tests/render/cross-compile-entry-point.slang1
-rw-r--r--tests/render/cross-compile0.hlsl1
-rw-r--r--tests/render/imported-parameters.hlsl1
-rw-r--r--tests/render/nointerpolation.hlsl1
-rw-r--r--tests/render/render0.hlsl1
-rw-r--r--tests/render/unused-discard.hlsl1
6 files changed, 0 insertions, 6 deletions
diff --git a/tests/render/cross-compile-entry-point.slang b/tests/render/cross-compile-entry-point.slang
index fa35833f0..018947228 100644
--- a/tests/render/cross-compile-entry-point.slang
+++ b/tests/render/cross-compile-entry-point.slang
@@ -1,5 +1,4 @@
//TEST(render):COMPARE_HLSL_CROSS_COMPILE_RENDER:
-//TEST(render):COMPARE_HLSL_CROSS_COMPILE_RENDER: -dx12
// This is a test to ensure that we can cross-compile a complete entry point.
diff --git a/tests/render/cross-compile0.hlsl b/tests/render/cross-compile0.hlsl
index 3d25c93e5..1d33b68bf 100644
--- a/tests/render/cross-compile0.hlsl
+++ b/tests/render/cross-compile0.hlsl
@@ -1,5 +1,4 @@
//TEST(smoke,render):COMPARE_HLSL_GLSL_RENDER:
-//TEST(smoke,render):COMPARE_HLSL_GLSL_RENDER: -dx12
// This is a basic test case for cross-compilation behavior.
//
diff --git a/tests/render/imported-parameters.hlsl b/tests/render/imported-parameters.hlsl
index 0bee75bf9..495ff8da2 100644
--- a/tests/render/imported-parameters.hlsl
+++ b/tests/render/imported-parameters.hlsl
@@ -1,5 +1,4 @@
//TEST(smoke,render):COMPARE_HLSL_GLSL_RENDER:
-//TEST(smoke,render):COMPARE_HLSL_GLSL_RENDER: -dx12
// This test is trying to ensure that we can
// correctly handle cases where top-level shader
diff --git a/tests/render/nointerpolation.hlsl b/tests/render/nointerpolation.hlsl
index 644692e36..11613b30e 100644
--- a/tests/render/nointerpolation.hlsl
+++ b/tests/render/nointerpolation.hlsl
@@ -1,5 +1,4 @@
//TEST(smoke):COMPARE_HLSL_RENDER:
-//TEST(smoke):COMPARE_HLSL_RENDER: -dx12
// Confirm that the `nointerpolation` modifier
// makes it through Slang codegen with the
diff --git a/tests/render/render0.hlsl b/tests/render/render0.hlsl
index 915608425..e6849fe60 100644
--- a/tests/render/render0.hlsl
+++ b/tests/render/render0.hlsl
@@ -1,5 +1,4 @@
//TEST(smoke):COMPARE_HLSL_RENDER:
-//TEST(smoke):COMPARE_HLSL_RENDER:-dx12
// Starting with a basic test for the ability to render stuff...
cbuffer Uniforms
diff --git a/tests/render/unused-discard.hlsl b/tests/render/unused-discard.hlsl
index 2a99b77bb..76b04b862 100644
--- a/tests/render/unused-discard.hlsl
+++ b/tests/render/unused-discard.hlsl
@@ -1,5 +1,4 @@
//TEST(smoke,render):COMPARE_HLSL_GLSL_RENDER:
-//TEST(smoke,render):COMPARE_HLSL_GLSL_RENDER: -dx12
// This is a basic test case for cross-compilation behavior.
//