summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2020-01-29 15:17:33 -0500
committerGitHub <noreply@github.com>2020-01-29 15:17:33 -0500
commit415409fc10cfd0d6b2eb805df8f37bdabc4f2405 (patch)
treeec5f5cabb6b2a2f88d8f447ffa1378846b414a85 /tests
parent2c8b983cf20ba662e351813f3f432b65eef3530c (diff)
Feature/target intrinsic fold (#1190)
* When checking if an instruction can be folded, take into account if it's called by a target intrinsic, because if it is we need to check if the parameter is accessed multiple times to see if it's worth allowing to fold. * Tidy up code around folding/target intrinsics. * Fix texture-load.slang . * Fix typo in assert.
Diffstat (limited to 'tests')
-rw-r--r--tests/cross-compile/texture-load.slang.glsl6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/cross-compile/texture-load.slang.glsl b/tests/cross-compile/texture-load.slang.glsl
index 23646db91..bb4514bad 100644
--- a/tests/cross-compile/texture-load.slang.glsl
+++ b/tests/cross-compile/texture-load.slang.glsl
@@ -30,10 +30,12 @@ uniform image2D outputTexture_0;
layout(local_size_x = 16, local_size_y = 16, local_size_z = 1) in;
void main()
{
+ ivec3 _S2 = ivec3(C_0._data.pos_0, 0);
+
vec2 tmp_0 = texelFetch(
inputTexture_0,
- ivec3(C_0._data.pos_0, 0).xy,
- ivec3(C_0._data.pos_0, 0).z).xy;
+ _S2.xy,
+ _S2.z).xy;
imageStore(
outputTexture_0,