dawn-cmake/test/intrinsics/gen
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
..
abs GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
acos GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
all GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
any GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
arrayLength GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
asin GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
atan GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
atan2 GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
atomicAdd GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
atomicAnd GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
atomicCompareExchangeWeak GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
atomicExchange GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
atomicLoad GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
atomicMax GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
atomicMin GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
atomicOr GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
atomicStore GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
atomicSub GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
atomicXor GLSL: standardize layout() formatting (whitespace change). 2022-01-25 20:06:05 +00:00
ceil GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
clamp GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
cos GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
cosh GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
countOneBits GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
cross GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
degrees GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
determinant GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
distance GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
dot GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
dpdx wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
dpdxCoarse wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
dpdxFine wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
dpdy wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
dpdyCoarse wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
dpdyFine wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
exp GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
exp2 GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
faceForward GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
floor GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
fma GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
fract GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
frexp GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
fwidth wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
fwidthCoarse wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
fwidthFine wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
ignore GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
inverseSqrt GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
isFinite GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
isInf GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
isNan GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
isNormal GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
ldexp GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
length GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
log GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
log2 GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
max GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
min GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
mix GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
modf GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
normalize GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
pack2x16float GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
pack2x16snorm GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
pack2x16unorm GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
pack4x8snorm GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
pack4x8unorm GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
pow GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
radians GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
reflect GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
refract GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
reverseBits GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
round GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
select GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
sign GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
sin GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
sinh GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
smoothStep GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
sqrt GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
step GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
storageBarrier wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00
tan GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
tanh GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureDimensions GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureGather GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureGatherCompare GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureLoad GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureNumLayers GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureNumLevels GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureNumSamples GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureSample GLSL: implement CombineSamplers transform (string version). 2022-01-24 17:17:22 +00:00
textureSampleBias GLSL: implement CombineSamplers transform (string version). 2022-01-24 17:17:22 +00:00
textureSampleCompare GLSL: implement CombineSamplers transform (string version). 2022-01-24 17:17:22 +00:00
textureSampleCompareLevel GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureSampleGrad GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureSampleLevel GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
textureStore GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
transpose GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
trunc GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
unpack2x16float GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
unpack2x16snorm GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
unpack2x16unorm GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
unpack4x8snorm GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
unpack4x8unorm GLSL: fix clip space mismatch in gl_Position. 2022-01-26 14:45:55 +00:00
workgroupBarrier wgsl: Replace [[decoration]] with @decoration 2022-01-19 22:46:57 +00:00