summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2020-11-19 01:14:34 -0800
committerGitHub <noreply@github.com>2020-11-19 01:14:34 -0800
commitac41b9956681d54f4487ff06922017f2753d0c45 (patch)
tree74b2e92419777ccd8c81c61206d96e16b52e8b44 /tests
parente140c4950eb8c69606386ca57284c0655513b9e1 (diff)
Fix constant folding in attributes (#1610)
* Fix constant folding in attributes * remove unnecessary change * remove unnecessary change * remove unnecessary change * Fixed circular checking issue. * cleanup * more cleanup * minimize diff * minimize diff * minimize diff
Diffstat (limited to 'tests')
-rw-r--r--tests/compute/groupshared.slang4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/compute/groupshared.slang b/tests/compute/groupshared.slang
index 2ebf325ab..ec7e055c5 100644
--- a/tests/compute/groupshared.slang
+++ b/tests/compute/groupshared.slang
@@ -8,7 +8,9 @@
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out, name=gBuffer
RWStructuredBuffer<int> gBuffer;
-#define THREAD_COUNT 4
+static const int A = 4;
+static const int B = 1;
+static const int THREAD_COUNT = A * B;
groupshared int gA[THREAD_COUNT];
int test(int val)