Skip to content

Commit 702c903

Browse files
Merge pull request #1589 from KhronosGroup/roll-deps
Roll dependencies.
2 parents ce18d1b + 5d82d32 commit 702c903

8 files changed

Lines changed: 46 additions & 13 deletions

checkout_glslang_spirv_tools.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22

3-
GLSLANG_REV=4dcc12d1a441b29d5901bc708bb1343d29d6459f
4-
SPIRV_TOOLS_REV=0a1fb588cd365f7737cb121fdd64553923e0cef6
5-
SPIRV_HEADERS_REV=060627f0b0d2fa8581b5acb939f46e3b9e500593
3+
GLSLANG_REV=3de5cfe50edecd001e6d703555284d9b10b3dd57
4+
SPIRV_TOOLS_REV=f3ccb633dfd7c5de1f9f0a2d2e9d7a25f2478206
5+
SPIRV_HEADERS_REV=f027d53ded7e230e008d37c8b47ede7cd308e19d
66

77
if [ -z $PROTOCOL ]; then
88
PROTOCOL=git

reference/opt/shaders-hlsl/asm/frag/line-directive.line.asm.frag

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,18 @@ void frag_main()
2929
#line 16 "test.frag"
3030
FragColor = 4.0f;
3131
}
32+
#line 19 "test.frag"
3233
for (int _127 = 0; float(_127) < (40.0f + vColor); )
3334
{
3435
#line 21 "test.frag"
3536
FragColor += 0.20000000298023223876953125f;
3637
#line 22 "test.frag"
3738
FragColor += 0.300000011920928955078125f;
39+
#line 19 "test.frag"
3840
_127 += (int(vColor) + 5);
3941
continue;
4042
}
43+
#line 25 "test.frag"
4144
switch (int(vColor))
4245
{
4346
case 0:
@@ -64,7 +67,10 @@ void frag_main()
6467
}
6568
for (;;)
6669
{
70+
#line 42 "test.frag"
6771
FragColor += (10.0f + vColor);
72+
#line 43 "test.frag"
73+
#line 42 "test.frag"
6874
#line 43 "test.frag"
6975
if (FragColor < 100.0f)
7076
{
@@ -74,6 +80,7 @@ void frag_main()
7480
break;
7581
}
7682
}
83+
#line 48 "test.frag"
7784
}
7885

7986
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)

reference/opt/shaders-msl/asm/comp/image-load-store-short-vector.asm.comp

Lines changed: 0 additions & 10 deletions
This file was deleted.

reference/shaders-msl/asm/comp/image-load-store-short-vector.asm.comp renamed to reference/opt/shaders-msl/asm/comp/image-load-store-short-vector.invalid.asm.comp

File renamed without changes.

reference/opt/shaders-msl/asm/frag/line-directive.line.asm.frag

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,18 @@ fragment main0_out main0(main0_in in [[stage_in]])
3232
#line 16 "test.frag"
3333
out.FragColor = 4.0;
3434
}
35+
#line 19 "test.frag"
3536
for (int _127 = 0; float(_127) < (40.0 + in.vColor); )
3637
{
3738
#line 21 "test.frag"
3839
out.FragColor += 0.20000000298023223876953125;
3940
#line 22 "test.frag"
4041
out.FragColor += 0.300000011920928955078125;
42+
#line 19 "test.frag"
4143
_127 += (int(in.vColor) + 5);
4244
continue;
4345
}
46+
#line 25 "test.frag"
4447
switch (int(in.vColor))
4548
{
4649
case 0:
@@ -67,7 +70,10 @@ fragment main0_out main0(main0_in in [[stage_in]])
6770
}
6871
for (;;)
6972
{
73+
#line 42 "test.frag"
7074
out.FragColor += (10.0 + in.vColor);
75+
#line 43 "test.frag"
76+
#line 42 "test.frag"
7177
#line 43 "test.frag"
7278
if (out.FragColor < 100.0)
7379
{
@@ -77,6 +83,7 @@ fragment main0_out main0(main0_in in [[stage_in]])
7783
break;
7884
}
7985
}
86+
#line 48 "test.frag"
8087
return out;
8188
}
8289

reference/opt/shaders/asm/frag/line-directive.line.asm.frag

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ void main()
2222
#line 16 "test.frag"
2323
FragColor = 4.0;
2424
}
25+
#line 19 "test.frag"
2526
for (int _127 = 0; float(_127) < (40.0 + vColor); )
2627
{
2728
#line 21 "test.frag"
2829
FragColor += 0.20000000298023223876953125;
2930
#line 22 "test.frag"
3031
FragColor += 0.300000011920928955078125;
32+
#line 19 "test.frag"
3133
_127 += (int(vColor) + 5);
3234
continue;
3335
}
36+
#line 25 "test.frag"
3437
switch (int(vColor))
3538
{
3639
case 0:
@@ -57,7 +60,10 @@ void main()
5760
}
5861
for (;;)
5962
{
63+
#line 42 "test.frag"
6064
FragColor += (10.0 + vColor);
65+
#line 43 "test.frag"
66+
#line 42 "test.frag"
6167
#line 43 "test.frag"
6268
if (FragColor < 100.0)
6369
{
@@ -67,5 +73,6 @@ void main()
6773
break;
6874
}
6975
}
76+
#line 48 "test.frag"
7077
}
7178

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#pragma clang diagnostic ignored "-Wmissing-prototypes"
2+
3+
#include <metal_stdlib>
4+
#include <simd/simd.h>
5+
6+
using namespace metal;
7+
8+
static inline __attribute__((always_inline))
9+
void _main(thread const uint3& id, thread texture2d<float, access::read_write> TargetTexture)
10+
{
11+
float2 loaded = TargetTexture.read(uint2(id.xy)).xy;
12+
float2 storeTemp = loaded + float2(1.0);
13+
TargetTexture.write(storeTemp.xyyy, uint2((id.xy + uint2(1u))));
14+
}
15+
16+
kernel void main0(texture2d<float, access::read_write> TargetTexture [[texture(0)]], uint3 gl_WorkGroupID [[threadgroup_position_in_grid]])
17+
{
18+
uint3 id = gl_WorkGroupID;
19+
uint3 param = id;
20+
_main(param, TargetTexture);
21+
}
22+

shaders-msl/asm/comp/image-load-store-short-vector.asm.comp renamed to shaders-msl/asm/comp/image-load-store-short-vector.invalid.asm.comp

File renamed without changes.

0 commit comments

Comments
 (0)