dawn-cmake/test/intrinsics/gen/textureNumLevels
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
..
1e6f3b.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
1e6f3b.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
1e6f3b.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
1e6f3b.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
1e6f3b.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
1e6f3b.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
2c3575.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
2c3575.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
2c3575.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
2c3575.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
2c3575.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
2c3575.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
9da7a5.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
9da7a5.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
9da7a5.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
9da7a5.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
9da7a5.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
9da7a5.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
09ddd0.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
09ddd0.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
09ddd0.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
09ddd0.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
09ddd0.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
09ddd0.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
23f750.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
23f750.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
23f750.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
23f750.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
23f750.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
23f750.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
32a0ae.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
32a0ae.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
32a0ae.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
32a0ae.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
32a0ae.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
32a0ae.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
51b5bb.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
51b5bb.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
51b5bb.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
51b5bb.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
51b5bb.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
51b5bb.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
076cb5.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
076cb5.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
076cb5.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
076cb5.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
076cb5.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
076cb5.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
080d95.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
080d95.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
080d95.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
080d95.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
080d95.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
080d95.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
897aaf.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
897aaf.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
897aaf.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
897aaf.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
897aaf.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
897aaf.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
5101cf.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
5101cf.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
5101cf.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
5101cf.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
5101cf.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
5101cf.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
105988.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
105988.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
105988.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
105988.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
105988.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
105988.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
a91c03.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
a91c03.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
a91c03.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
a91c03.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
a91c03.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
a91c03.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
aee7c8.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
aee7c8.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
aee7c8.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
aee7c8.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
aee7c8.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
aee7c8.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
b1b12b.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
b1b12b.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
b1b12b.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
b1b12b.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
b1b12b.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
b1b12b.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
b4f5ea.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
b4f5ea.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
b4f5ea.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
b4f5ea.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
b4f5ea.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
b4f5ea.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
d004a9.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
d004a9.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
d004a9.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
d004a9.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
d004a9.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
d004a9.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
dca09e.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
dca09e.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
dca09e.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
dca09e.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
dca09e.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
dca09e.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
e67231.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
e67231.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
e67231.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
e67231.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
e67231.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
e67231.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
ed078b.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
ed078b.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
ed078b.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
ed078b.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
ed078b.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
ed078b.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
f46ec6.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
f46ec6.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
f46ec6.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
f46ec6.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
f46ec6.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
f46ec6.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
f5828d.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
f5828d.wgsl.expected.glsl GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
f5828d.wgsl.expected.hlsl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
f5828d.wgsl.expected.msl transform/shader_io: Generate a wrapper function 2021-08-04 22:15:28 +00:00
f5828d.wgsl.expected.spvasm spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
f5828d.wgsl.expected.wgsl wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00