[Webkit-unassigned] [Bug 214948] REGRESSION: [ ios14 ] webgl/1.0.3/conformance/glsl/functions/glsl-function-sign.html and webgl/1.0.3/conformance/glsl/misc/glsl-function-nodes.html are failing consistently.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 29 17:37:35 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=214948
--- Comment #5 from Dean Jackson <dino at apple.com> ---
This is quite weird.
This is the reference vertex shader:
[[[
attribute vec4 aPosition;
varying vec4 vColor;
float sign_base(float value) {
if (value == 0.0) return 0.0;
return value > 0.0 ? 1.0 : -1.0;
}
float sign_emu(float value) {
return sign_base(value);
}
void main()
{
gl_Position = aPosition;
vec2 texcoord = vec2(aPosition.xy * 0.5 + vec2(0.5, 0.5));
vec4 color = vec4(
texcoord,
texcoord.x * texcoord.y,
(1.0 - texcoord.x) * texcoord.y * 0.5 + 0.5);
vColor = vec4(
sign_emu(color.x * 2.0 - 1.0) * 0.5 + 0.5,
0.5,
0,
1);
}
]]]
and this is the test vertex shader:
[[[
attribute vec4 aPosition;
varying vec4 vColor;
void main()
{
gl_Position = aPosition;
vec2 texcoord = vec2(aPosition.xy * 0.5 + vec2(0.5, 0.5));
vec4 color = vec4(
texcoord,
texcoord.x * texcoord.y,
(1.0 - texcoord.x) * texcoord.y * 0.5 + 0.5);
vColor = vec4(
sign(color.x * 2.0 - 1.0) * 0.5 + 0.5,
0.5,
0,
1);
}
]]]
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200730/bdffe443/attachment-0001.htm>
More information about the webkit-unassigned
mailing list