blob: 0e630341298157e04c8e84fc5a3d31d57e3e05f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
//TEST:SIMPLE(filecheck=CHECK): -target glsl -entry computeMain -stage compute -profile sm_5_0
//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target glsl -emit-spirv-directly -entry computeMain -stage compute -profile sm_5_0 -ignore-capabilities
// CHECK_IGNORE_CAPS-NOT: error 36107
[numthreads(1, 1, 1)]
// CHECK: ([[# @LINE+1]]): error 36107: {{.*}}computeMain{{.*}}compute{{.*}}glsl
void computeMain()
{
nestedCall();
}
void nestedCall()
{
nestedSafeCall();
nestedBadCall();
}
void nestedSafeCall()
{
AllMemoryBarrier();
}
void nestedBadCall()
{
// CHECK: ([[# @LINE+1]]): note: see using of 'WaveMultiPrefixCountBits'
WaveMultiPrefixCountBits(true, 0);
}
|