[glsl] Mark more tests as desktop
Update more the test files to be desktop only.
Change-Id: I1ad92864b4a0ba817d8fb4398ecc32ffe6ffa471
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/209538
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl
index 04c5325..485765b 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_cube;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.glsl
index 6d7d84f..ed381f1 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -29,14 +27,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:12: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:12: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:10: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -65,13 +62,12 @@
}
error: Error parsing GLSL shader:
ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:10: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp samplerCubeShadow arg_0_arg_1;
@@ -104,9 +100,8 @@
}
error: Error parsing GLSL shader:
ERROR: 0:7: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:7: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:7: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.ir.glsl
index 7bc1fae..6091859 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/1b0291.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -18,14 +16,7 @@
void main() {
v.tint_symbol = textureSampleLevel_1b0291();
}
-error: Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -42,14 +33,7 @@
void main() {
v.tint_symbol = textureSampleLevel_1b0291();
}
-error: Error parsing GLSL shader:
-ERROR: 0:11: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
@@ -79,12 +63,3 @@
vertex_main_loc0_Output = v_1.prevent_dce;
gl_PointSize = 1.0f;
}
-error: Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl
index 2e7ee3e..0a2c3cf 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.glsl
index 81d3ed5..a9bce84 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -29,14 +27,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:12: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:12: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:10: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -65,13 +62,12 @@
}
error: Error parsing GLSL shader:
ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:10: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -104,9 +100,8 @@
}
error: Error parsing GLSL shader:
ERROR: 0:7: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:7: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:7: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl
index 9ce5c7e..9fe0764 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -18,14 +16,7 @@
void main() {
v.tint_symbol = textureSampleLevel_1bf73e();
}
-error: Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -42,14 +33,7 @@
void main() {
v.tint_symbol = textureSampleLevel_1bf73e();
}
-error: Error parsing GLSL shader:
-ERROR: 0:11: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
@@ -79,12 +63,3 @@
vertex_main_loc0_Output = v_1.prevent_dce;
gl_PointSize = 1.0f;
}
-error: Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl
index 8a6d8ec..ba12dff 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.glsl
index 451d65b..02fbc72 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -29,14 +27,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:12: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:12: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:10: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -65,13 +62,12 @@
}
error: Error parsing GLSL shader:
ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:10: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -104,9 +100,8 @@
}
error: Error parsing GLSL shader:
ERROR: 0:7: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:7: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:7: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.ir.glsl
index 3dfed2d..916731e 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/2974eb.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -18,14 +16,7 @@
void main() {
v.tint_symbol = textureSampleLevel_2974eb();
}
-error: Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -42,14 +33,7 @@
void main() {
v.tint_symbol = textureSampleLevel_2974eb();
}
-error: Error parsing GLSL shader:
-ERROR: 0:11: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
@@ -79,12 +63,3 @@
vertex_main_loc0_Output = v_1.prevent_dce;
gl_PointSize = 1.0f;
}
-error: Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl
index edfde62..129af96 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.glsl
index dd6c2ae..792bd89 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -29,13 +27,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:12: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:12: '' : compilation terminated
+ERROR: 0:10: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:10: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -69,7 +67,7 @@
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.ir.glsl
index bab9a36..5c10a03 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/36780e.wgsl.expected.ir.glsl
@@ -1,4 +1,4 @@
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -16,7 +16,7 @@
void main() {
v.tint_symbol = textureSampleLevel_36780e();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -33,7 +33,7 @@
void main() {
v.tint_symbol = textureSampleLevel_36780e();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl
index 48e0013..28085c3 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.glsl
index bb69b66..c3745f5 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -29,13 +27,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:12: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:12: '' : compilation terminated
+ERROR: 0:10: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:10: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -69,7 +67,7 @@
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl
index a189df2..77c1a4a 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl
@@ -1,4 +1,4 @@
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -16,7 +16,7 @@
void main() {
v.tint_symbol = textureSampleLevel_36f0d3();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -33,7 +33,7 @@
void main() {
v.tint_symbol = textureSampleLevel_36f0d3();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl
index 462c8c7..c5f46a6 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.glsl
index 147f9e8..1824e53 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -29,14 +27,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:12: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:12: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:10: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -65,13 +62,12 @@
}
error: Error parsing GLSL shader:
ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:10: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -104,9 +100,8 @@
}
error: Error parsing GLSL shader:
ERROR: 0:7: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:7: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:7: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.ir.glsl
index d04db87..7495f74 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/3c3442.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -18,14 +16,7 @@
void main() {
v.tint_symbol = textureSampleLevel_3c3442();
}
-error: Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -42,14 +33,7 @@
void main() {
v.tint_symbol = textureSampleLevel_3c3442();
}
-error: Error parsing GLSL shader:
-ERROR: 0:11: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
@@ -79,12 +63,3 @@
vertex_main_loc0_Output = v_1.prevent_dce;
gl_PointSize = 1.0f;
}
-error: Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl
index f59a8b9..28fa14a 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.glsl
index f414ca0..8b0a6ca 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -29,14 +27,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:12: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:12: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:10: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -65,13 +62,12 @@
}
error: Error parsing GLSL shader:
ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:10: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -104,9 +100,8 @@
}
error: Error parsing GLSL shader:
ERROR: 0:7: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:7: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:7: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.ir.glsl
index 6f07331..8b6481e 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/615583.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -18,14 +16,7 @@
void main() {
v.tint_symbol = textureSampleLevel_615583();
}
-error: Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -42,14 +33,7 @@
void main() {
v.tint_symbol = textureSampleLevel_615583();
}
-error: Error parsing GLSL shader:
-ERROR: 0:11: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
@@ -79,12 +63,3 @@
vertex_main_loc0_Output = v_1.prevent_dce;
gl_PointSize = 1.0f;
}
-error: Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl
index 58abc13b..2fd51618 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_cube;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl.expected.glsl
index 06cd003..d7a42f2 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -29,14 +27,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:12: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:12: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:10: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -65,13 +62,12 @@
}
error: Error parsing GLSL shader:
ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:10: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp samplerCubeShadow arg_0_arg_1;
@@ -104,9 +100,8 @@
}
error: Error parsing GLSL shader:
ERROR: 0:7: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:7: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:7: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl
index eeaf480..c8e3c5c 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -18,14 +16,7 @@
void main() {
v.tint_symbol = textureSampleLevel_ae92a2();
}
-error: Error parsing GLSL shader:
-ERROR: 0:13: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:13: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -42,14 +33,7 @@
void main() {
v.tint_symbol = textureSampleLevel_ae92a2();
}
-error: Error parsing GLSL shader:
-ERROR: 0:11: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:11: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
@@ -79,12 +63,3 @@
vertex_main_loc0_Output = v_1.prevent_dce;
gl_PointSize = 1.0f;
}
-error: Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl
index 712e931..3b23475 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.glsl
index de2404a..7ee6fb0 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -29,13 +27,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:12: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:12: '' : compilation terminated
+ERROR: 0:10: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:10: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -69,7 +67,7 @@
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl
index 3aecd9b..5ceda59 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl
@@ -1,4 +1,4 @@
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -16,7 +16,7 @@
void main() {
v.tint_symbol = textureSampleLevel_cdfe0f();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -33,7 +33,7 @@
void main() {
v.tint_symbol = textureSampleLevel_cdfe0f();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl b/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl
index d54846a..edd6e90 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.glsl
index 42fe5ca..7cd48ad 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -29,13 +27,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:12: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:12: '' : compilation terminated
+ERROR: 0:10: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:10: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -69,7 +67,7 @@
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
diff --git a/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl
index 0beffea..bb75fd9 100644
--- a/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/literal/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl
@@ -1,4 +1,4 @@
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -16,7 +16,7 @@
void main() {
v.tint_symbol = textureSampleLevel_e6ce9e();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -33,7 +33,7 @@
void main() {
v.tint_symbol = textureSampleLevel_e6ce9e();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl
index 071c6e1..ed0aece 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_cube;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.glsl
index f7a4eb3..b2c429c 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -31,14 +29,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:14: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:14: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 0:12: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:12: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -69,13 +66,12 @@
}
error: Error parsing GLSL shader:
ERROR: 0:12: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:12: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp samplerCubeShadow arg_0_arg_1;
@@ -110,9 +106,8 @@
}
error: Error parsing GLSL shader:
ERROR: 0:9: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:9: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.ir.glsl
index 01830d8..b744da6 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/1b0291.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -21,14 +19,7 @@
void main() {
v.tint_symbol = textureSampleLevel_1b0291();
}
-error: Error parsing GLSL shader:
-ERROR: 0:16: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:16: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -48,14 +39,7 @@
void main() {
v.tint_symbol = textureSampleLevel_1b0291();
}
-error: Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
@@ -88,12 +72,3 @@
vertex_main_loc0_Output = v_2.prevent_dce;
gl_PointSize = 1.0f;
}
-error: Error parsing GLSL shader:
-ERROR: 0:17: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:17: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl
index 2f3cee4..e3c76df 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.glsl
index 2339bcf..f3de44e 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -32,14 +30,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:15: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:15: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:15: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 0:13: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:13: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -71,13 +68,12 @@
}
error: Error parsing GLSL shader:
ERROR: 0:13: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:13: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:13: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -113,9 +109,8 @@
}
error: Error parsing GLSL shader:
ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:10: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl
index 131a078..57c12f0 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/1bf73e.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -23,14 +21,7 @@
void main() {
v.tint_symbol = textureSampleLevel_1bf73e();
}
-error: Error parsing GLSL shader:
-ERROR: 0:18: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:18: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -52,14 +43,7 @@
void main() {
v.tint_symbol = textureSampleLevel_1bf73e();
}
-error: Error parsing GLSL shader:
-ERROR: 0:16: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:16: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
@@ -94,12 +78,3 @@
vertex_main_loc0_Output = v_3.prevent_dce;
gl_PointSize = 1.0f;
}
-error: Error parsing GLSL shader:
-ERROR: 0:19: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:19: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl
index 5d18160..fd1ca12 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.glsl
index b2f2d0c..bb76763 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -32,14 +30,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:15: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:15: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:15: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 0:13: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:13: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -71,13 +68,12 @@
}
error: Error parsing GLSL shader:
ERROR: 0:13: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:13: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:13: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -113,9 +109,8 @@
}
error: Error parsing GLSL shader:
ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:10: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.ir.glsl
index dbac72f..693d58c 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/2974eb.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -23,14 +21,7 @@
void main() {
v.tint_symbol = textureSampleLevel_2974eb();
}
-error: Error parsing GLSL shader:
-ERROR: 0:18: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:18: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -52,14 +43,7 @@
void main() {
v.tint_symbol = textureSampleLevel_2974eb();
}
-error: Error parsing GLSL shader:
-ERROR: 0:16: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:16: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
@@ -94,12 +78,3 @@
vertex_main_loc0_Output = v_3.prevent_dce;
gl_PointSize = 1.0f;
}
-error: Error parsing GLSL shader:
-ERROR: 0:19: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:19: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl
index aad88a2..1404418 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.glsl
index 0631d5ae..38664d1 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -32,13 +30,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:15: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:15: '' : compilation terminated
+ERROR: 0:13: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:13: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -75,7 +73,7 @@
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.ir.glsl
index fdc0195..b5fd6f7 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/36780e.wgsl.expected.ir.glsl
@@ -1,4 +1,4 @@
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -21,7 +21,7 @@
void main() {
v.tint_symbol = textureSampleLevel_36780e();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -43,7 +43,7 @@
void main() {
v.tint_symbol = textureSampleLevel_36780e();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl
index ba28cb8..d085a51 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.glsl
index 12f8b83..00a6b82 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -32,13 +30,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:15: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:15: '' : compilation terminated
+ERROR: 0:13: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:13: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -75,7 +73,7 @@
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl
index 7bfe637..d0c13f2 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/36f0d3.wgsl.expected.ir.glsl
@@ -1,4 +1,4 @@
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -21,7 +21,7 @@
void main() {
v.tint_symbol = textureSampleLevel_36f0d3();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -43,7 +43,7 @@
void main() {
v.tint_symbol = textureSampleLevel_36f0d3();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl
index 7597365..dc1fdf2 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.glsl
index 95a38be..5ba44b9 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -32,14 +30,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:15: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:15: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:15: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 0:13: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:13: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -71,13 +68,12 @@
}
error: Error parsing GLSL shader:
ERROR: 0:13: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:13: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:13: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -113,9 +109,8 @@
}
error: Error parsing GLSL shader:
ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:10: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.ir.glsl
index 26ccd77..6ddb723 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/3c3442.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -23,14 +21,7 @@
void main() {
v.tint_symbol = textureSampleLevel_3c3442();
}
-error: Error parsing GLSL shader:
-ERROR: 0:18: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:18: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -52,14 +43,7 @@
void main() {
v.tint_symbol = textureSampleLevel_3c3442();
}
-error: Error parsing GLSL shader:
-ERROR: 0:16: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:16: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
@@ -94,12 +78,3 @@
vertex_main_loc0_Output = v_3.prevent_dce;
gl_PointSize = 1.0f;
}
-error: Error parsing GLSL shader:
-ERROR: 0:19: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:19: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl
index 25afae6..358e45b 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.glsl
index 686a94c..1f2699a 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -32,14 +30,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:15: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:15: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:15: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 0:13: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:13: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -71,13 +68,12 @@
}
error: Error parsing GLSL shader:
ERROR: 0:13: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:13: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:13: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
@@ -113,9 +109,8 @@
}
error: Error parsing GLSL shader:
ERROR: 0:10: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:10: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:10: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.ir.glsl
index 59a3cce..e59dd02 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/615583.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -23,14 +21,7 @@
void main() {
v.tint_symbol = textureSampleLevel_615583();
}
-error: Error parsing GLSL shader:
-ERROR: 0:18: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:18: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -52,14 +43,7 @@
void main() {
v.tint_symbol = textureSampleLevel_615583();
}
-error: Error parsing GLSL shader:
-ERROR: 0:16: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:16: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
@@ -94,12 +78,3 @@
vertex_main_loc0_Output = v_3.prevent_dce;
gl_PointSize = 1.0f;
}
-error: Error parsing GLSL shader:
-ERROR: 0:19: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:19: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl
index 8d42897..24792c8 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_cube;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl.expected.glsl
index 4df7ca9..3f7a8cd 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -31,14 +29,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:14: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:14: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 0:12: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:12: '' : compilation terminated
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -69,13 +66,12 @@
}
error: Error parsing GLSL shader:
ERROR: 0:12: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:12: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:12: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp samplerCubeShadow arg_0_arg_1;
@@ -110,9 +106,8 @@
}
error: Error parsing GLSL shader:
ERROR: 0:9: 'textureLod(..., float lod)' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:9: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
ERROR: 0:9: '' : compilation terminated
-ERROR: 3 compilation errors. No code generated.
+ERROR: 2 compilation errors. No code generated.
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl
index 893d564..5d431ab 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/ae92a2.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -21,14 +19,7 @@
void main() {
v.tint_symbol = textureSampleLevel_ae92a2();
}
-error: Error parsing GLSL shader:
-ERROR: 0:16: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:16: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -48,14 +39,7 @@
void main() {
v.tint_symbol = textureSampleLevel_ae92a2();
}
-error: Error parsing GLSL shader:
-ERROR: 0:14: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:14: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
@@ -88,12 +72,3 @@
vertex_main_loc0_Output = v_2.prevent_dce;
gl_PointSize = 1.0f;
}
-error: Error parsing GLSL shader:
-ERROR: 0:17: 'textureLod(..., float lod)' : GL_EXT_texture_shadow_lod not supported for this ES version
-ERROR: 0:17: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl
index b712d45..cd2bd15 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.glsl
index b0ad1c8..82bb32d 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -32,13 +30,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:15: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:15: '' : compilation terminated
+ERROR: 0:13: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:13: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -75,7 +73,7 @@
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl
index 0adb29f..4ce7568 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/cdfe0f.wgsl.expected.ir.glsl
@@ -1,4 +1,4 @@
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -21,7 +21,7 @@
void main() {
v.tint_symbol = textureSampleLevel_cdfe0f();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -43,7 +43,7 @@
void main() {
v.tint_symbol = textureSampleLevel_cdfe0f();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl b/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl
index 147b5b8..6e3a91a 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl
@@ -35,6 +35,8 @@
////////////////////////////////////////////////////////////////////////////////
+// flags: --glsl-desktop
+
@group(0) @binding(0) var<storage, read_write> prevent_dce : f32;
@group(1) @binding(0) var arg_0: texture_depth_2d_array;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.glsl b/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.glsl
index 62affe7..f266776 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.glsl
@@ -1,8 +1,6 @@
SKIP: FAILED
-#version 310 es
-precision highp float;
-precision highp int;
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -32,13 +30,13 @@
return;
}
error: Error parsing GLSL shader:
-ERROR: 0:15: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
-ERROR: 0:15: '' : compilation terminated
+ERROR: 0:13: 'textureLodOffset for sampler2DArrayShadow' : required extension not requested: GL_EXT_texture_shadow_lod
+ERROR: 0:13: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.
-#version 310 es
+#version 460
layout(binding = 0, std430) buffer prevent_dce_block_ssbo {
float inner;
@@ -75,7 +73,7 @@
-#version 310 es
+#version 460
layout(location = 0) flat out float prevent_dce_1;
uniform highp sampler2DArrayShadow arg_0_arg_1;
diff --git a/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl b/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl
index bd1f622..92987fd 100644
--- a/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl
+++ b/test/tint/builtins/gen/var/textureSampleLevel/e6ce9e.wgsl.expected.ir.glsl
@@ -1,4 +1,4 @@
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
precision highp float;
precision highp int;
@@ -21,7 +21,7 @@
void main() {
v.tint_symbol = textureSampleLevel_e6ce9e();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
layout(binding = 0, std430)
@@ -43,7 +43,7 @@
void main() {
v.tint_symbol = textureSampleLevel_e6ce9e();
}
-#version 310 es
+#version 460
#extension GL_EXT_texture_shadow_lod: require
diff --git a/test/tint/types/texture/depth/cube_array.wgsl b/test/tint/types/texture/depth/cube_array.wgsl
index a7f2a0e..2a4aa66 100644
--- a/test/tint/types/texture/depth/cube_array.wgsl
+++ b/test/tint/types/texture/depth/cube_array.wgsl
@@ -1,3 +1,5 @@
+// flags: --glsl-desktop
+
@group(0) @binding(0) var t_f : texture_depth_cube_array;
@compute @workgroup_size(1)
diff --git a/test/tint/types/texture/depth/cube_array.wgsl.expected.glsl b/test/tint/types/texture/depth/cube_array.wgsl.expected.glsl
index 628d85c..d4a0eba 100644
--- a/test/tint/types/texture/depth/cube_array.wgsl.expected.glsl
+++ b/test/tint/types/texture/depth/cube_array.wgsl.expected.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
uniform highp samplerCubeArray t_f_1;
void tint_symbol() {
@@ -12,12 +10,3 @@
tint_symbol();
return;
}
-error: Error parsing GLSL shader:
-ERROR: 0:3: 'samplerCubeArray' : Reserved word.
-ERROR: 0:3: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/types/texture/depth/cube_array.wgsl.expected.ir.glsl b/test/tint/types/texture/depth/cube_array.wgsl.expected.ir.glsl
index 54b0189..084828a 100644
--- a/test/tint/types/texture/depth/cube_array.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/depth/cube_array.wgsl.expected.ir.glsl
@@ -1,18 +1,7 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
uniform highp samplerCubeArrayShadow t_f;
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
uvec2 dims = uvec2(textureSize(t_f, 0).xy);
}
-error: Error parsing GLSL shader:
-ERROR: 0:3: 'samplerCubeArrayShadow' : Reserved word.
-ERROR: 0:3: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/types/texture/sampled/cube_array.wgsl b/test/tint/types/texture/sampled/cube_array.wgsl
index 7105a31..322909b 100644
--- a/test/tint/types/texture/sampled/cube_array.wgsl
+++ b/test/tint/types/texture/sampled/cube_array.wgsl
@@ -1,3 +1,5 @@
+// flags: --glsl-desktop
+
@group(0) @binding(0) var t_f : texture_cube_array<f32>;
@group(0) @binding(1) var t_i : texture_cube_array<i32>;
@group(0) @binding(2) var t_u : texture_cube_array<u32>;
diff --git a/test/tint/types/texture/sampled/cube_array.wgsl.expected.glsl b/test/tint/types/texture/sampled/cube_array.wgsl.expected.glsl
index 136767b..e4d4fb7 100644
--- a/test/tint/types/texture/sampled/cube_array.wgsl.expected.glsl
+++ b/test/tint/types/texture/sampled/cube_array.wgsl.expected.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
uniform highp samplerCubeArray t_f_1;
uniform highp isamplerCubeArray t_i_1;
@@ -16,12 +14,3 @@
tint_symbol();
return;
}
-error: Error parsing GLSL shader:
-ERROR: 0:3: 'samplerCubeArray' : Reserved word.
-ERROR: 0:3: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/types/texture/sampled/cube_array.wgsl.expected.ir.glsl b/test/tint/types/texture/sampled/cube_array.wgsl.expected.ir.glsl
index eb425e6..934b8d2 100644
--- a/test/tint/types/texture/sampled/cube_array.wgsl.expected.ir.glsl
+++ b/test/tint/types/texture/sampled/cube_array.wgsl.expected.ir.glsl
@@ -1,6 +1,4 @@
-SKIP: FAILED
-
-#version 310 es
+#version 460
uniform highp samplerCubeArray t_f;
uniform highp isamplerCubeArray t_i;
@@ -11,12 +9,3 @@
uvec2 idims = uvec2(textureSize(t_i, 1).xy);
uvec2 udims = uvec2(textureSize(t_u, 1).xy);
}
-error: Error parsing GLSL shader:
-ERROR: 0:3: 'samplerCubeArray' : Reserved word.
-ERROR: 0:3: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/types/texture/storage/1d.wgsl b/test/tint/types/texture/storage/1d.wgsl
index 06d7dba..dd98c59 100644
--- a/test/tint/types/texture/storage/1d.wgsl
+++ b/test/tint/types/texture/storage/1d.wgsl
@@ -1,3 +1,5 @@
+// --glsl-desktop
+
@group(0) @binding(0) var t_rgba8unorm : texture_storage_1d<rgba8unorm, write>;
@group(0) @binding(1) var t_rgba8snorm : texture_storage_1d<rgba8snorm, write>;
@group(0) @binding(2) var t_rgba8uint : texture_storage_1d<rgba8uint, write>;
diff --git a/test/tint/types/texture/storage/2d.wgsl b/test/tint/types/texture/storage/2d.wgsl
index 22b97d5..bc96a1a 100644
--- a/test/tint/types/texture/storage/2d.wgsl
+++ b/test/tint/types/texture/storage/2d.wgsl
@@ -1,3 +1,5 @@
+// --glsl-desktop
+
@group(0) @binding(0) var t_rgba8unorm : texture_storage_2d<rgba8unorm, write>;
@group(0) @binding(1) var t_rgba8snorm : texture_storage_2d<rgba8snorm, write>;
@group(0) @binding(2) var t_rgba8uint : texture_storage_2d<rgba8uint, write>;
diff --git a/test/tint/types/texture/storage/2d_array.wgsl b/test/tint/types/texture/storage/2d_array.wgsl
index c0399e2..718a62b 100644
--- a/test/tint/types/texture/storage/2d_array.wgsl
+++ b/test/tint/types/texture/storage/2d_array.wgsl
@@ -1,3 +1,5 @@
+// --glsl-desktop
+
@group(0) @binding(0) var t_rgba8unorm : texture_storage_2d_array<rgba8unorm, write>;
@group(0) @binding(1) var t_rgba8snorm : texture_storage_2d_array<rgba8snorm, write>;
@group(0) @binding(2) var t_rgba8uint : texture_storage_2d_array<rgba8uint, write>;
diff --git a/test/tint/types/texture/storage/3d.wgsl b/test/tint/types/texture/storage/3d.wgsl
index e4b553b..584877e 100644
--- a/test/tint/types/texture/storage/3d.wgsl
+++ b/test/tint/types/texture/storage/3d.wgsl
@@ -1,3 +1,5 @@
+// --glsl-desktop
+
@group(0) @binding(0) var t_rgba8unorm : texture_storage_3d<rgba8unorm, write>;
@group(0) @binding(1) var t_rgba8snorm : texture_storage_3d<rgba8snorm, write>;
@group(0) @binding(2) var t_rgba8uint : texture_storage_3d<rgba8uint, write>;
diff --git a/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm b/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm
index f702b8d..3750fc3 100644
--- a/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm
+++ b/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm
@@ -1,3 +1,4 @@
+; flags: --glsl-desktop
; Test: Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm
; SPIR-V
; Version: 1.0
diff --git a/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl b/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl
deleted file mode 100644
index 289b4ca..0000000
--- a/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.glsl
+++ /dev/null
@@ -1,48 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-int tint_ftoi(float v) {
- return ((v <= 2147483520.0f) ? ((v < -2147483648.0f) ? (-2147483647 - 1) : int(v)) : 2147483647);
-}
-
-uniform highp samplerCubeArray x_20_x_10;
-
-void main_1() {
- float float_var = 0.0f;
- int i1 = 1;
- ivec2 vi12 = ivec2(1, 2);
- ivec3 vi123 = ivec3(1, 2, 3);
- ivec4 vi1234 = ivec4(1, 2, 3, 4);
- uint u1 = 1u;
- uvec2 vu12 = uvec2(1u, 2u);
- uvec3 vu123 = uvec3(1u, 2u, 3u);
- uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
- float f1 = 1.0f;
- vec2 vf12 = vec2(1.0f, 2.0f);
- vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
- vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
- vec4 x_73 = texture(x_20_x_10, vec4(vf1234.xyz, float(tint_ftoi(round(vf1234.w)))));
- uint x_1000 = 0u;
- return;
-}
-
-void tint_symbol() {
- main_1();
-}
-
-void main() {
- tint_symbol();
- return;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:9: 'samplerCubeArray' : Reserved word.
-ERROR: 0:9: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
deleted file mode 100644
index 8965d5e..0000000
--- a/test/tint/unittest/reader/spirv/Good_CubeArray_SpvParserHandleTest_ImageCoordsTest_MakeCoordinateOperandsForImageAccess_0.spvasm.expected.ir.glsl
+++ /dev/null
@@ -1,39 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-uniform highp samplerCubeArray x_20_x_10;
-int tint_f32_to_i32(float value) {
- return mix(2147483647, mix((-2147483647 - 1), int(value), (value >= -2147483648.0f)), (value <= 2147483520.0f));
-}
-void main_1() {
- float float_var = 0.0f;
- int i1 = 1;
- ivec2 vi12 = ivec2(1, 2);
- ivec3 vi123 = ivec3(1, 2, 3);
- ivec4 vi1234 = ivec4(1, 2, 3, 4);
- uint u1 = 1u;
- uvec2 vu12 = uvec2(1u, 2u);
- uvec3 vu123 = uvec3(1u, 2u, 3u);
- uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
- float f1 = 1.0f;
- vec2 vf12 = vec2(1.0f, 2.0f);
- vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
- vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
- vec4 x_73 = texture(x_20_x_10, vec4(vf1234.xyz, float(tint_f32_to_i32(round(vf1234[3u])))));
- uint x_1000 = 0u;
-}
-void main() {
- main_1();
-}
-error: Error parsing GLSL shader:
-ERROR: 0:5: 'samplerCubeArray' : Reserved word.
-ERROR: 0:5: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm
index a717694..20add66 100644
--- a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm
+++ b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm
@@ -1,3 +1,4 @@
+; flags: --glsl-desktop
; Test: ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm
; SPIR-V
; Version: 1.0
diff --git a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
deleted file mode 100644
index 266851c..0000000
--- a/test/tint/unittest/reader/spirv/ImageQueryLevels_SignedResult_SpvParserHandleTest_SampledImageAccessTest_Variable_4.spvasm.expected.ir.glsl
+++ /dev/null
@@ -1,48 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-
-struct TintTextureUniformData {
- uint tint_builtin_value_0;
-};
-
-uniform highp samplerCubeArray x_20;
-layout(binding = 0, std140)
-uniform tint_symbol_2_1_ubo {
- TintTextureUniformData tint_symbol_1;
-} v;
-void main_1() {
- float f1 = 1.0f;
- vec2 vf12 = vec2(1.0f, 2.0f);
- vec2 vf21 = vec2(2.0f, 1.0f);
- vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
- vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
- int i1 = 1;
- ivec2 vi12 = ivec2(1, 2);
- ivec3 vi123 = ivec3(1, 2, 3);
- ivec4 vi1234 = ivec4(1, 2, 3, 4);
- uint u1 = 1u;
- uvec2 vu12 = uvec2(1u, 2u);
- uvec3 vu123 = uvec3(1u, 2u, 3u);
- uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
- float coords1 = 1.0f;
- vec2 coords12 = vf12;
- vec3 coords123 = vf123;
- vec4 coords1234 = vf1234;
- int x_99 = int(v.tint_symbol_1.tint_builtin_value_0);
-}
-void main() {
- main_1();
-}
-error: Error parsing GLSL shader:
-ERROR: 0:10: 'samplerCubeArray' : Reserved word.
-ERROR: 0:10: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm
index 962f677..7f62950 100644
--- a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm
+++ b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm
@@ -1,3 +1,4 @@
+; flags: --glsl-desktop
; Test: ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm
; SPIR-V
; Version: 1.0
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl
deleted file mode 100644
index f373846..0000000
--- a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.glsl
+++ /dev/null
@@ -1,45 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-uniform highp samplerCubeArray x_20_1;
-void main_1() {
- float f1 = 1.0f;
- vec2 vf12 = vec2(1.0f, 2.0f);
- vec2 vf21 = vec2(2.0f, 1.0f);
- vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
- vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
- ivec2 vi12 = ivec2(1, 2);
- ivec3 vi123 = ivec3(1, 2, 3);
- ivec4 vi1234 = ivec4(1, 2, 3, 4);
- uint u1 = 1u;
- uvec2 vu12 = uvec2(1u, 2u);
- uvec3 vu123 = uvec3(1u, 2u, 3u);
- uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
- float coords1 = 1.0f;
- vec2 coords12 = vf12;
- vec3 coords123 = vf123;
- vec4 coords1234 = vf1234;
- ivec3 x_99 = ivec3(uvec3(uvec2(textureSize(x_20_1, 1).xy).xy, uint(textureSize(x_20_1, 0).z)));
- return;
-}
-
-void tint_symbol() {
- main_1();
-}
-
-void main() {
- tint_symbol();
- return;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:5: 'samplerCubeArray' : Reserved word.
-ERROR: 0:5: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
deleted file mode 100644
index 2d82ce0..0000000
--- a/test/tint/unittest/reader/spirv/ImageQuerySizeLod_Arrayed_SignedResult_SignedLevel_SpvParserHandleTest_SampledImageAccessTest_Variable_1.spvasm.expected.ir.glsl
+++ /dev/null
@@ -1,39 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-uniform highp samplerCubeArray x_20;
-void main_1() {
- float f1 = 1.0f;
- vec2 vf12 = vec2(1.0f, 2.0f);
- vec2 vf21 = vec2(2.0f, 1.0f);
- vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
- vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
- ivec2 vi12 = ivec2(1, 2);
- ivec3 vi123 = ivec3(1, 2, 3);
- ivec4 vi1234 = ivec4(1, 2, 3, 4);
- uint u1 = 1u;
- uvec2 vu12 = uvec2(1u, 2u);
- uvec3 vu123 = uvec3(1u, 2u, 3u);
- uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
- float coords1 = 1.0f;
- vec2 coords12 = vf12;
- vec3 coords123 = vf123;
- vec4 coords1234 = vf1234;
- uvec2 v = uvec2(textureSize(x_20, 1).xy).xy;
- ivec3 x_99 = ivec3(uvec3(v, uint(textureSize(x_20, 0).z)));
-}
-void main() {
- main_1();
-}
-error: Error parsing GLSL shader:
-ERROR: 0:5: 'samplerCubeArray' : Reserved word.
-ERROR: 0:5: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl
index fd4e95e..606ea4a 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_3.spvasm.expected.glsl
@@ -5,7 +5,7 @@
precision highp int;
int tint_ftoi(float v) {
- return ((v <= 2147483520.0f) ? ((v < -2147483648.0f) ? (-2147483647 - 1) : int(v)) : 2147483647);
+ return mix(2147483647, mix(int(v), (-2147483647 - 1), (v < -2147483648.0f)), (v <= 2147483520.0f));
}
uniform highp sampler2DArrayShadow x_20_x_10;
diff --git a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.glsl b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.glsl
index 51db3a7..d7c45ab 100644
--- a/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.glsl
+++ b/test/tint/unittest/reader/spirv/ImageSampleDrefExplicitLod_SpvParserHandleTest_SampledImageAccessTest_Variable_5.spvasm.expected.glsl
@@ -5,7 +5,7 @@
precision highp int;
int tint_ftoi(float v) {
- return ((v <= 2147483520.0f) ? ((v < -2147483648.0f) ? (-2147483647 - 1) : int(v)) : 2147483647);
+ return mix(2147483647, mix(int(v), (-2147483647 - 1), (v < -2147483648.0f)), (v <= 2147483520.0f));
}
uniform highp samplerCubeArrayShadow x_20_x_10;
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm
index 228dd41..596c95e 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm
@@ -1,3 +1,4 @@
+; flags: --glsl-desktop
; Test: ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm
; SPIR-V
; Version: 1.0
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.glsl
deleted file mode 100644
index fff227f..0000000
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.glsl
+++ /dev/null
@@ -1,42 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-layout(binding = 1, rg32f) uniform highp writeonly image2D x_20;
-void main_1() {
- float f1 = 1.0f;
- vec2 vf12 = vec2(1.0f, 2.0f);
- vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
- vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
- int i1 = 1;
- ivec2 vi12 = ivec2(1, 2);
- ivec3 vi123 = ivec3(1, 2, 3);
- ivec4 vi1234 = ivec4(1, 2, 3, 4);
- uint u1 = 1u;
- uvec2 vu12 = uvec2(1u, 2u);
- uvec3 vu123 = uvec3(1u, 2u, 3u);
- uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
- ivec2 offsets2d = ivec2(3, 4);
- imageStore(x_20, vi12, vec4(vf12, 0.0f, 0.0f));
- return;
-}
-
-void tint_symbol() {
- main_1();
-}
-
-void main() {
- tint_symbol();
- return;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:5: 'image load-store format' : not supported with this profile: es
-ERROR: 0:5: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.ir.glsl
deleted file mode 100644
index 8837882..0000000
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_4.spvasm.expected.ir.glsl
+++ /dev/null
@@ -1,35 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-layout(binding = 1, rg32f) uniform highp writeonly image2D x_20;
-void main_1() {
- float f1 = 1.0f;
- vec2 vf12 = vec2(1.0f, 2.0f);
- vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
- vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
- int i1 = 1;
- ivec2 vi12 = ivec2(1, 2);
- ivec3 vi123 = ivec3(1, 2, 3);
- ivec4 vi1234 = ivec4(1, 2, 3, 4);
- uint u1 = 1u;
- uvec2 vu12 = uvec2(1u, 2u);
- uvec3 vu123 = uvec3(1u, 2u, 3u);
- uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
- ivec2 offsets2d = ivec2(3, 4);
- imageStore(x_20, vi12, vec4(vf12, 0.0f, 0.0f));
-}
-void main() {
- main_1();
-}
-error: Error parsing GLSL shader:
-ERROR: 0:5: 'image load-store format' : not supported with this profile: es
-ERROR: 0:5: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm
index 1501e62..1ffed04 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm
@@ -1,3 +1,4 @@
+; flags: --glsl-desktop
; Test: ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm
; SPIR-V
; Version: 1.0
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.glsl
deleted file mode 100644
index ba86312..0000000
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.glsl
+++ /dev/null
@@ -1,42 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-layout(binding = 1, rg32f) uniform highp writeonly image2D x_20;
-void main_1() {
- float f1 = 1.0f;
- vec2 vf12 = vec2(1.0f, 2.0f);
- vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
- vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
- int i1 = 1;
- ivec2 vi12 = ivec2(1, 2);
- ivec3 vi123 = ivec3(1, 2, 3);
- ivec4 vi1234 = ivec4(1, 2, 3, 4);
- uint u1 = 1u;
- uvec2 vu12 = uvec2(1u, 2u);
- uvec3 vu123 = uvec3(1u, 2u, 3u);
- uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
- ivec2 offsets2d = ivec2(3, 4);
- imageStore(x_20, vi12, vec4(vf123, 0.0f));
- return;
-}
-
-void tint_symbol() {
- main_1();
-}
-
-void main() {
- tint_symbol();
- return;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:5: 'image load-store format' : not supported with this profile: es
-ERROR: 0:5: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.ir.glsl
deleted file mode 100644
index abd95e5..0000000
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_5.spvasm.expected.ir.glsl
+++ /dev/null
@@ -1,35 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-layout(binding = 1, rg32f) uniform highp writeonly image2D x_20;
-void main_1() {
- float f1 = 1.0f;
- vec2 vf12 = vec2(1.0f, 2.0f);
- vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
- vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
- int i1 = 1;
- ivec2 vi12 = ivec2(1, 2);
- ivec3 vi123 = ivec3(1, 2, 3);
- ivec4 vi1234 = ivec4(1, 2, 3, 4);
- uint u1 = 1u;
- uvec2 vu12 = uvec2(1u, 2u);
- uvec3 vu123 = uvec3(1u, 2u, 3u);
- uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
- ivec2 offsets2d = ivec2(3, 4);
- imageStore(x_20, vi12, vec4(vf123, 0.0f));
-}
-void main() {
- main_1();
-}
-error: Error parsing GLSL shader:
-ERROR: 0:5: 'image load-store format' : not supported with this profile: es
-ERROR: 0:5: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm
index aefe7fc..d818422 100644
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm
+++ b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm
@@ -1,3 +1,4 @@
+; flags: --glsl-desktop
; Test: ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm
; SPIR-V
; Version: 1.0
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.glsl
deleted file mode 100644
index 23be94a..0000000
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.glsl
+++ /dev/null
@@ -1,42 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-layout(binding = 1, rg32f) uniform highp writeonly image2D x_20;
-void main_1() {
- float f1 = 1.0f;
- vec2 vf12 = vec2(1.0f, 2.0f);
- vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
- vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
- int i1 = 1;
- ivec2 vi12 = ivec2(1, 2);
- ivec3 vi123 = ivec3(1, 2, 3);
- ivec4 vi1234 = ivec4(1, 2, 3, 4);
- uint u1 = 1u;
- uvec2 vu12 = uvec2(1u, 2u);
- uvec3 vu123 = uvec3(1u, 2u, 3u);
- uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
- ivec2 offsets2d = ivec2(3, 4);
- imageStore(x_20, vi12, vf1234);
- return;
-}
-
-void tint_symbol() {
- main_1();
-}
-
-void main() {
- tint_symbol();
- return;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:5: 'image load-store format' : not supported with this profile: es
-ERROR: 0:5: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.ir.glsl
deleted file mode 100644
index 69dd992..0000000
--- a/test/tint/unittest/reader/spirv/ImageWrite_ConvertTexelOperand_Arity_SpvParserHandleTest_ImageAccessTest_Variable_6.spvasm.expected.ir.glsl
+++ /dev/null
@@ -1,35 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-layout(binding = 1, rg32f) uniform highp writeonly image2D x_20;
-void main_1() {
- float f1 = 1.0f;
- vec2 vf12 = vec2(1.0f, 2.0f);
- vec3 vf123 = vec3(1.0f, 2.0f, 3.0f);
- vec4 vf1234 = vec4(1.0f, 2.0f, 3.0f, 4.0f);
- int i1 = 1;
- ivec2 vi12 = ivec2(1, 2);
- ivec3 vi123 = ivec3(1, 2, 3);
- ivec4 vi1234 = ivec4(1, 2, 3, 4);
- uint u1 = 1u;
- uvec2 vu12 = uvec2(1u, 2u);
- uvec3 vu123 = uvec3(1u, 2u, 3u);
- uvec4 vu1234 = uvec4(1u, 2u, 3u, 4u);
- ivec2 offsets2d = ivec2(3, 4);
- imageStore(x_20, vi12, vf1234);
-}
-void main() {
- main_1();
-}
-error: Error parsing GLSL shader:
-ERROR: 0:5: 'image load-store format' : not supported with this profile: es
-ERROR: 0:5: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm
index 2205dfa..ed506eb 100644
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm
+++ b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm
@@ -1,3 +1,4 @@
+; flags: --glsl-desktop
; Test: Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm
; SPIR-V
; Version: 1.0
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.glsl
deleted file mode 100644
index fddc56b..0000000
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.glsl
+++ /dev/null
@@ -1,29 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-layout(binding = 0, rg32f) uniform highp writeonly image2D x_20;
-void main_1() {
- imageStore(x_20, ivec2(1, 0), vec4(0.0f));
- return;
-}
-
-void tint_symbol() {
- main_1();
-}
-
-void main() {
- tint_symbol();
- return;
-}
-error: Error parsing GLSL shader:
-ERROR: 0:5: 'image load-store format' : not supported with this profile: es
-ERROR: 0:5: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.ir.glsl b/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.ir.glsl
deleted file mode 100644
index 1f144d9..0000000
--- a/test/tint/unittest/reader/spirv/Samples_SpvParserHandleTest_RegisterHandleUsage_RawImage_Variable_1.spvasm.expected.ir.glsl
+++ /dev/null
@@ -1,22 +0,0 @@
-SKIP: FAILED
-
-#version 310 es
-precision highp float;
-precision highp int;
-
-layout(binding = 0, rg32f) uniform highp writeonly image2D x_20;
-void main_1() {
- imageStore(x_20, ivec2(1, 0), vec4(0.0f));
-}
-void main() {
- main_1();
-}
-error: Error parsing GLSL shader:
-ERROR: 0:5: 'image load-store format' : not supported with this profile: es
-ERROR: 0:5: '' : compilation terminated
-ERROR: 2 compilation errors. No code generated.
-
-
-
-
-tint executable returned error: exit status 1
diff --git a/tools/src/tint/intrinsic/gen/gen.go b/tools/src/tint/intrinsic/gen/gen.go
index 0322213..8d7b200 100644
--- a/tools/src/tint/intrinsic/gen/gen.go
+++ b/tools/src/tint/intrinsic/gen/gen.go
@@ -614,6 +614,16 @@
// OverloadUsesGLESTexture returns true if the overload uses a texture value for GLSL ES 3.10
func OverloadNeedsDesktopGLSL(overload sem.Overload) bool {
+ if overload.Intrinsic.Name == "textureSampleLevel" {
+ for _, param := range overload.Parameters {
+ if strings.HasPrefix(param.Type.Target.GetName(), "texture_depth_2d_array") ||
+ strings.HasPrefix(param.Type.Target.GetName(), "texture_depth_cube") ||
+ strings.HasPrefix(param.Type.Target.GetName(), "texture_depth_cube_array") {
+ return true
+ }
+ }
+ }
+
for _, param := range overload.Parameters {
if strings.HasPrefix(param.Type.Target.GetName(), "texture_storage") {
fmt := param.Type.TemplateArguments[0].(sem.FullyQualifiedName).Target.GetName()