Title: [253779] trunk/Source/WebCore
- Revision
- 253779
- Author
- [email protected]
- Date
- 2019-12-19 12:04:13 -0800 (Thu, 19 Dec 2019)
Log Message
ANGLE: Fix last WebGL conformance regressions
https://bugs.webkit.org/show_bug.cgi?id=205306
Fixes the last few WebGL conformance regressions when enabling ANGLE on AMD GPUs on Mac.
The combination of alpha:false and antialias:true was broken, and validation of
non-ascii characters in comments was broken by a recent change to the test.
Patch by James Darpinian <[email protected]> on 2019-12-19
Reviewed by Dean Jackson.
* html/canvas/WebGLRenderingContextBase.cpp:
(WebCore::WebGLRenderingContextBase::shaderSource):
* platform/graphics/angle/GraphicsContext3DANGLE.cpp:
(WebCore::GraphicsContext3D::reshapeFBOs):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (253778 => 253779)
--- trunk/Source/WebCore/ChangeLog 2019-12-19 20:00:24 UTC (rev 253778)
+++ trunk/Source/WebCore/ChangeLog 2019-12-19 20:04:13 UTC (rev 253779)
@@ -1,3 +1,19 @@
+2019-12-19 James Darpinian <[email protected]>
+
+ ANGLE: Fix last WebGL conformance regressions
+ https://bugs.webkit.org/show_bug.cgi?id=205306
+
+ Fixes the last few WebGL conformance regressions when enabling ANGLE on AMD GPUs on Mac.
+ The combination of alpha:false and antialias:true was broken, and validation of
+ non-ascii characters in comments was broken by a recent change to the test.
+
+ Reviewed by Dean Jackson.
+
+ * html/canvas/WebGLRenderingContextBase.cpp:
+ (WebCore::WebGLRenderingContextBase::shaderSource):
+ * platform/graphics/angle/GraphicsContext3DANGLE.cpp:
+ (WebCore::GraphicsContext3D::reshapeFBOs):
+
2019-12-19 Alan Bujtas <[email protected]>
Unreviewed, rolling out r253711.
Modified: trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp (253778 => 253779)
--- trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp 2019-12-19 20:00:24 UTC (rev 253778)
+++ trunk/Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp 2019-12-19 20:04:13 UTC (rev 253779)
@@ -3648,11 +3648,15 @@
{
if (isContextLostOrPending() || !validateWebGLObject("shaderSource", shader))
return;
+#if USE(ANGLE)
+ m_context->shaderSource(objectOrZero(shader), string);
+#else
String stringWithoutComments = StripComments(string).result();
if (!validateString("shaderSource", stringWithoutComments))
return;
+ m_context->shaderSource(objectOrZero(shader), stringWithoutComments);
+#endif
shader->setSource(string);
- m_context->shaderSource(objectOrZero(shader), stringWithoutComments);
}
void WebGLRenderingContextBase::stencilFunc(GC3Denum func, GC3Dint ref, GC3Duint mask)
Modified: trunk/Source/WebCore/platform/graphics/angle/GraphicsContext3DANGLE.cpp (253778 => 253779)
--- trunk/Source/WebCore/platform/graphics/angle/GraphicsContext3DANGLE.cpp 2019-12-19 20:00:24 UTC (rev 253778)
+++ trunk/Source/WebCore/platform/graphics/angle/GraphicsContext3DANGLE.cpp 2019-12-19 20:04:13 UTC (rev 253779)
@@ -165,7 +165,7 @@
GLint sampleCount = std::min(4, maxSampleCount);
gl::BindFramebuffer(GL_FRAMEBUFFER, m_multisampleFBO);
gl::BindRenderbuffer(GL_RENDERBUFFER, m_multisampleColorBuffer);
- getExtensions().renderbufferStorageMultisample(GL_RENDERBUFFER, sampleCount, GL_RGBA8, width, height);
+ getExtensions().renderbufferStorageMultisample(GL_RENDERBUFFER, sampleCount, m_internalColorFormat, width, height);
gl::FramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, m_multisampleColorBuffer);
if (m_attrs.stencil || m_attrs.depth) {
gl::BindRenderbuffer(GL_RENDERBUFFER, m_multisampleDepthStencilBuffer);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes