dawn-cmake/test/intrinsics/gen/select
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
..
00b848.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
00b848.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
00b848.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
00b848.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
00b848.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
00b848.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
01e2cd.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
01e2cd.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
01e2cd.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
01e2cd.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
01e2cd.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
01e2cd.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
1e960b.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
1e960b.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
1e960b.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
1e960b.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
1e960b.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
1e960b.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
3c25ce.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
3c25ce.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
3c25ce.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
3c25ce.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
3c25ce.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
3c25ce.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
8fa62c.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
8fa62c.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
8fa62c.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
8fa62c.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
8fa62c.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
8fa62c.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
28a27e.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
28a27e.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
28a27e.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
28a27e.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
28a27e.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
28a27e.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
51b047.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
51b047.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
51b047.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
51b047.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
51b047.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
51b047.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
78be5f.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
78be5f.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
78be5f.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
78be5f.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
78be5f.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
78be5f.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
80a9a9.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
80a9a9.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
80a9a9.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
80a9a9.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
80a9a9.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
80a9a9.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
087ea4.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
087ea4.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
087ea4.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
087ea4.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
087ea4.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
087ea4.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
99f883.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
99f883.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
99f883.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
99f883.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
99f883.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
99f883.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
266aff.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
266aff.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
266aff.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
266aff.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
266aff.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
266aff.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
416e14.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
416e14.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
416e14.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
416e14.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
416e14.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
416e14.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
713567.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
713567.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
713567.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
713567.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
713567.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
713567.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
a2860e.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
a2860e.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
a2860e.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
a2860e.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
a2860e.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
a2860e.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
ab069f.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
ab069f.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
ab069f.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
ab069f.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
ab069f.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
ab069f.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
b04721.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
b04721.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
b04721.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
b04721.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
b04721.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
b04721.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
bb8aae.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
bb8aae.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
bb8aae.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
bb8aae.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
bb8aae.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
bb8aae.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
bb447f.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
bb447f.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
bb447f.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
bb447f.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
bb447f.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
bb447f.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
bf3d29.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
bf3d29.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
bf3d29.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
bf3d29.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
bf3d29.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
bf3d29.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
c4a4ef.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
c4a4ef.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
c4a4ef.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
c4a4ef.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
c4a4ef.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
c4a4ef.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
c31f9e.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
c31f9e.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
c31f9e.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
c31f9e.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
c31f9e.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
c31f9e.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
c41bd1.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
c41bd1.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
c41bd1.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
c41bd1.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
c41bd1.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
c41bd1.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
cb9301.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
cb9301.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
cb9301.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
cb9301.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
cb9301.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
cb9301.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
e3e028.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
e3e028.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
e3e028.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
e3e028.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
e3e028.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
e3e028.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
ebfea2.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
ebfea2.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
ebfea2.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
ebfea2.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
ebfea2.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
ebfea2.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
ed8a15.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
ed8a15.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
ed8a15.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
ed8a15.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
ed8a15.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
ed8a15.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
fb7e53.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
fb7e53.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
fb7e53.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
fb7e53.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
fb7e53.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
fb7e53.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00