Skip to content

Commit 2506046

Browse files
committed
Merge remote-tracking branch 'origin' into resource-arrays-msl
2 parents 3a9af96 + e0fb64b commit 2506046

File tree

111 files changed

+632
-782
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+632
-782
lines changed

checkout_glslang_spirv_tools.sh

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

3-
GLSLANG_REV=461ea09943e0e88ea854ab9e3b42d17d728af2ad
4-
SPIRV_TOOLS_REV=53bc1623ecd3cc304d0d6feed8385e70c7ab30d3
3+
GLSLANG_REV=91ac4290bcf2cb930b4fb0981f09c00c0b6797e1
4+
SPIRV_TOOLS_REV=9bfe0eb25e3dfdf4f3fd86ab6c0cda009c9bd661
55

66
if [ -d external/glslang ]; then
77
echo "Updating glslang to revision $GLSLANG_REV."

main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,8 @@ static int main_inner(int argc, char *argv[])
838838
else
839839
{
840840
combined_image_samplers = !args.vulkan_semantics;
841-
build_dummy_sampler = true;
841+
if (!args.vulkan_semantics)
842+
build_dummy_sampler = true;
842843
compiler = unique_ptr<CompilerGLSL>(new CompilerGLSL(read_spirv_file(args.input)));
843844
}
844845

reference/opt/shaders-hlsl/asm/comp/atomic-decrement.asm.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void comp_main()
1111
{
1212
uint _29;
1313
u0_counter.InterlockedAdd(0, -1, _29);
14-
u0[uint(asint(asfloat(_29))) + 0u] = uint(int(gl_GlobalInvocationID.x)).x;
14+
u0[asint(asfloat(_29))] = uint(int(gl_GlobalInvocationID.x)).x;
1515
}
1616

1717
[numthreads(4, 1, 1)]

reference/opt/shaders-hlsl/asm/comp/atomic-increment.asm.comp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void comp_main()
1111
{
1212
uint _29;
1313
u0_counter.InterlockedAdd(0, 1, _29);
14-
u0[uint(asint(asfloat(_29))) + 0u] = uint(int(gl_GlobalInvocationID.x)).x;
14+
u0[asint(asfloat(_29))] = uint(int(gl_GlobalInvocationID.x)).x;
1515
}
1616

1717
[numthreads(4, 1, 1)]

reference/opt/shaders-hlsl/asm/vert/spec-constant-op-composite.asm.vert

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ struct SPIRV_Cross_Output
1717

1818
void vert_main()
1919
{
20-
float4 _64 = 0.0f.xxxx;
21-
_64.y = float(_20);
22-
float4 _68 = _64;
23-
_68.z = float(_25);
24-
float4 _52 = _68 + float4(_30);
20+
float4 _63 = 0.0f.xxxx;
21+
_63.y = float(_20);
22+
float4 _66 = _63;
23+
_66.z = float(_25);
24+
float4 _52 = _66 + float4(_30);
2525
float2 _56 = _52.xy + float2(_32);
2626
gl_Position = float4(_56.x, _56.y, _52.z, _52.w);
2727
_4 = _33;

reference/opt/shaders-hlsl/comp/composite-array-initialization.comp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@ struct SPIRV_Cross_Input
2424
uint gl_LocalInvocationIndex : SV_GroupIndex;
2525
};
2626

27-
static Data data[2];
28-
static Data data2[2];
29-
3027
void comp_main()
3128
{
32-
data = _25;
29+
Data data[2] = _25;
3330
Data _28 = { X, 2.0f };
3431
Data _31[2] = { _28, _30 };
35-
data2 = _31;
32+
Data data2[2] = _31;
3633
if (gl_LocalInvocationIndex == 0u)
3734
{
3835
_61.Store(gl_WorkGroupID.x * 8 + 0, asuint(data[gl_LocalInvocationID.x].a + data2[gl_LocalInvocationID.x].a));

reference/opt/shaders-hlsl/frag/bvec-operations.frag

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ struct SPIRV_Cross_Output
1111
float4 FragColor : SV_Target0;
1212
};
1313

14+
bool _47;
15+
1416
void frag_main()
1517
{
16-
bool2 _25 = bool2(value.x == 0.0f, value.y == 0.0f);
18+
bool2 _25 = bool2(value.x == 0.0f, _47);
1719
FragColor = float4(1.0f, 0.0f, float(bool2(!_25.x, !_25.y).x), float(bool2(value.x <= float2(1.5f, 0.5f).x, value.y <= float2(1.5f, 0.5f).y).x));
1820
}
1921

reference/opt/shaders-hlsl/frag/constant-buffer-array.sm51.frag renamed to reference/opt/shaders-hlsl/frag/constant-buffer-array.invalid.sm51.frag

File renamed without changes.

reference/opt/shaders-hlsl/frag/constant-composites.frag

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,10 @@ struct SPIRV_Cross_Output
2222
float4 FragColor : SV_Target0;
2323
};
2424

25-
static float lut[4];
26-
static Foo foos[2];
27-
2825
void frag_main()
2926
{
30-
lut = _16;
31-
foos = _28;
32-
FragColor = lut[_line].xxxx;
27+
Foo foos[2] = _28;
28+
FragColor = _16[_line].xxxx;
3329
FragColor += (foos[_line].a * foos[1 - _line].a).xxxx;
3430
}
3531

File renamed without changes.

0 commit comments

Comments
 (0)