summaryrefslogtreecommitdiff
path: root/tests/pipeline/rasterization
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-02-24 10:01:47 -0800
committerGitHub <noreply@github.com>2023-02-24 10:01:47 -0800
commitbd6306cdaa4a49344658bd026721b6532e103d09 (patch)
treebb7f666d426e6cfc7777a3ccac0a1d628588eb39 /tests/pipeline/rasterization
parente8c08e7ecb1124f115a1d1042277776193122b57 (diff)
More control flow simplifications. (#2673)
* More control flow and Phi param simplifications. * Fix. * Fix gcc error. * Fix. * More IR cleanup. * Fix bug in phi param dce + ifelse simplify. * Propagate and DCE side-effect-free functions. * Enhance CFG simplifcation to remove loops with no side effects. * Fix. * Fixes. * Fix tests. Add [__AlwaysFoldIntoUseSite] for rayPayloadLocation. * More cleanup. * Fixes. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/pipeline/rasterization')
-rw-r--r--tests/pipeline/rasterization/fragment-shader-interlock.slang.glsl14
-rw-r--r--tests/pipeline/rasterization/mesh/passing-outputs.slang.glsl6
2 files changed, 4 insertions, 16 deletions
diff --git a/tests/pipeline/rasterization/fragment-shader-interlock.slang.glsl b/tests/pipeline/rasterization/fragment-shader-interlock.slang.glsl
index 84eba46f0..7f53576e9 100644
--- a/tests/pipeline/rasterization/fragment-shader-interlock.slang.glsl
+++ b/tests/pipeline/rasterization/fragment-shader-interlock.slang.glsl
@@ -1,10 +1,7 @@
-//TEST_IGNORE_FILE:
-
#version 450
#extension GL_ARB_fragment_shader_interlock : require
layout(row_major) uniform;
layout(row_major) buffer;
-
layout(rgba32f)
layout(binding = 0)
uniform image2D entryPointParams_texture_0;
@@ -17,15 +14,12 @@ out vec4 _S2;
void main()
{
- beginInvocationInterlockARB();
-
- vec2 _S3 = _S1.xy;
-
- vec4 _S4 = (imageLoad((entryPointParams_texture_0), ivec2((uvec2(_S3)))));
- imageStore((entryPointParams_texture_0), ivec2((uvec2(_S3))), _S4 + _S1);
+ beginInvocationInterlockARB();
+ uvec2 _S3 = uvec2(_S1.xy);
+ vec4 _S4 = (imageLoad((entryPointParams_texture_0), ivec2((_S3))));
+ imageStore((entryPointParams_texture_0), ivec2((_S3)), _S4 + _S1);
endInvocationInterlockARB();
-
_S2 = _S4;
return;
}
diff --git a/tests/pipeline/rasterization/mesh/passing-outputs.slang.glsl b/tests/pipeline/rasterization/mesh/passing-outputs.slang.glsl
index 31c2f0db2..1102a838e 100644
--- a/tests/pipeline/rasterization/mesh/passing-outputs.slang.glsl
+++ b/tests/pipeline/rasterization/mesh/passing-outputs.slang.glsl
@@ -160,16 +160,10 @@ void main()
d_0(gl_LocalInvocationIndex);
e_0(gl_LocalInvocationIndex);
}
- else
- {
- }
if(gl_LocalInvocationIndex < 1U)
{
gl_PrimitiveTriangleIndicesEXT[gl_LocalInvocationIndex] = uvec3(0U, 1U, 2U);
}
- else
- {
- }
return;
}