dawn-cmake/test/intrinsics/gen/textureGather
Stephen White b1d2b84f7d GLSL: fix clip space mismatch in gl_Position.
OpenGL clips against [-w, w], while WebGPU uses [0, w]. The fix is to
modify gl_Position.z on output to match GLSL semantics. (This is the
same code used by SPIRV-Cross under the fixup_clipspace option.)

Bug: tint:1401
Change-Id: I1b1511352eee11cd9b095cd809aa8e1263c6cf4c
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/78261
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2022-01-26 14:45:55 +00:00
..
2e0ed5.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
2e0ed5.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
2e0ed5.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
2e0ed5.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
2e0ed5.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
2e0ed5.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
3c527e.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
3c527e.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
3c527e.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
3c527e.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
3c527e.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
3c527e.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
4f2350.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
4f2350.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
4f2350.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
4f2350.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
4f2350.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
4f2350.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
9a6358.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
9a6358.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
9a6358.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
9a6358.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
9a6358.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
9a6358.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
9efca2.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
9efca2.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
9efca2.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
9efca2.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
9efca2.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
9efca2.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
10c554.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
10c554.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
10c554.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
10c554.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
10c554.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
10c554.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
15d79c.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
15d79c.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
15d79c.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
15d79c.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
15d79c.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
15d79c.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
51cf0b.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
51cf0b.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
51cf0b.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
51cf0b.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
51cf0b.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
51cf0b.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
53ece6.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
53ece6.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
53ece6.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
53ece6.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
53ece6.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
53ece6.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
57bfc6.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
57bfc6.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
57bfc6.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
57bfc6.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
57bfc6.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
57bfc6.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
69e0fb.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
69e0fb.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
69e0fb.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
69e0fb.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
69e0fb.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
69e0fb.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
587ba3.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
587ba3.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
587ba3.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
587ba3.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
587ba3.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
587ba3.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
01305f.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
01305f.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
01305f.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
01305f.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
01305f.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
01305f.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
3112e8.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
3112e8.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
3112e8.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
3112e8.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
3112e8.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
3112e8.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
06030a.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
06030a.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
06030a.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
06030a.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
06030a.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
06030a.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
43025d.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
43025d.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
43025d.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
43025d.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
43025d.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
43025d.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
93003d.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
93003d.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
93003d.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
93003d.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
93003d.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
93003d.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
bd0b1e.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
bd0b1e.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
bd0b1e.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
bd0b1e.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
bd0b1e.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
bd0b1e.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
c409ae.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
c409ae.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
c409ae.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
c409ae.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
c409ae.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
c409ae.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
c55822.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
c55822.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
c55822.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
c55822.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
c55822.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
c55822.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
e1b67d.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
e1b67d.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
e1b67d.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
e1b67d.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
e1b67d.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
e1b67d.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
e9eff6.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
e9eff6.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
e9eff6.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
e9eff6.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
e9eff6.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
e9eff6.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
f5f3ba.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
f5f3ba.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
f5f3ba.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
f5f3ba.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
f5f3ba.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
f5f3ba.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
f7995a.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
f7995a.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
f7995a.wgsl.expected.hlsl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
f7995a.wgsl.expected.msl Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
f7995a.wgsl.expected.spvasm Implement textureGather, textureGatherCompare 2021-12-08 19:54:08 +00:00
f7995a.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00