--- /home/igalia/clopez/webkit/webkit/layout-test-results/fast/canvas/webgl/webgl-draw-buffers-expected.txt +++ /home/igalia/clopez/webkit/webkit/layout-test-results/fast/canvas/webgl/webgl-draw-buffers-actual.txt @@ -1,16 +1,17 @@ -CONSOLE MESSAGE: WebGL: INVALID_ENUM: getParameter: invalid parameter name, WEBGL_draw_buffers not enabled -CONSOLE MESSAGE: WebGL: INVALID_ENUM: getParameter: invalid parameter name, WEBGL_draw_buffers not enabled -CONSOLE MESSAGE: line 43: *** Error compiling FRAGMENT_SHADER '[object WebGLShader]':ERROR: 0:2: 'GL_EXT_draw_buffers' : extension is not supported - -CONSOLE MESSAGE: line 43: Error in compiling shader -CONSOLE MESSAGE: WebGL: INVALID_ENUM: framebufferTexture2D: invalid attachment -CONSOLE MESSAGE: WebGL: INVALID_VALUE: drawBuffersWEBGL: more than one buffer -CONSOLE MESSAGE: WebGL: INVALID_VALUE: drawBuffersWEBGL: more than one buffer -CONSOLE MESSAGE: WebGL: INVALID_OPERATION: drawBuffersWEBGL: BACK or NONE -CONSOLE MESSAGE: WebGL: INVALID_ENUM: framebufferTexture2D: invalid attachment -CONSOLE MESSAGE: WebGL: INVALID_OPERATION: drawBuffersWEBGL: COLOR_ATTACHMENTi_EXT or NONE -CONSOLE MESSAGE: WebGL: checkFramebufferStatus: attachments do not have the same dimensions -CONSOLE MESSAGE: WebGL: checkFramebufferStatus: attachments do not have the same dimensions +CONSOLE MESSAGE: line 205: WebGL: INVALID_ENUM: getParameter: invalid parameter name, WEBGL_draw_buffers not enabled +CONSOLE MESSAGE: line 205: WebGL: INVALID_ENUM: getParameter: invalid parameter name, WEBGL_draw_buffers not enabled +CONSOLE MESSAGE: line 1313: WebGL: ERROR: 0:2: 'GL_EXT_draw_buffers' : extension is not supported +CONSOLE MESSAGE: line 24: *** Error compiling shader '[object WebGLShader]':ERROR: 0:2: 'GL_EXT_draw_buffers' : extension is not supported + +CONSOLE MESSAGE: line 24: Error in compiling shader +CONSOLE MESSAGE: line 294: WebGL: INVALID_ENUM: framebufferTexture2D: invalid attachment +CONSOLE MESSAGE: line 1: WebGL: INVALID_VALUE: drawBuffersWEBGL: more than one buffer +CONSOLE MESSAGE: line 1: WebGL: INVALID_VALUE: drawBuffersWEBGL: more than one buffer +CONSOLE MESSAGE: line 1: WebGL: INVALID_OPERATION: drawBuffersWEBGL: BACK or NONE +CONSOLE MESSAGE: line 328: WebGL: INVALID_ENUM: framebufferTexture2D: invalid attachment +CONSOLE MESSAGE: line 343: WebGL: INVALID_OPERATION: drawBuffersWEBGL: COLOR_ATTACHMENTi_EXT or NONE +CONSOLE MESSAGE: WebGL: checkFramebufferStatus:attachments do not have the same dimensions +CONSOLE MESSAGE: WebGL: checkFramebufferStatus:attachments do not have the same dimensions This test verifies the functionality of the WEBGL_draw_buffers extension, if it is available. On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". @@ -25,9 +26,11 @@ test shaders disabled vertex shader -fragement shaderPASS GL_EXT_draw_buffers should not be defined in GLSL +fragement shader +PASS GL_EXT_draw_buffers should not be defined in GLSL vertex shader -fragement shaderPASS #extension GL_EXT_draw_buffers should not be allowed in GLSL +fragement shader +PASS #extension GL_EXT_draw_buffers should not be allowed in GLSL PASS getError was expected value: NO_ERROR : there should be no errors test attachment disabled @@ -82,20 +85,22 @@ PASS ext.DRAW_BUFFER15_WEBGL is 0x8834 Testing drawBuffersWEBGL with default drawing buffer PASS gl.getParameter(ext.DRAW_BUFFER0_WEBGL) is gl.BACK -PASS getError was expected value: INVALID_VALUE : after evaluating: ext.drawBuffersWEBGL([]) -PASS getError was expected value: INVALID_VALUE : after evaluating: ext.drawBuffersWEBGL([gl.NONE, gl.NONE]) -PASS getError was expected value: INVALID_OPERATION : after evaluating: ext.drawBuffersWEBGL([ext.COLOR_ATTACHMENT0_WEBGL]) +PASS ext.drawBuffersWEBGL([]) was expected value: INVALID_VALUE. +PASS ext.drawBuffersWEBGL([gl.NONE, gl.NONE]) was expected value: INVALID_VALUE. +PASS ext.drawBuffersWEBGL([ext.COLOR_ATTACHMENT0_WEBGL]) was expected value: INVALID_OPERATION. PASS gl.getParameter(ext.DRAW_BUFFER0_WEBGL) is gl.BACK -PASS getError was expected value: NO_ERROR : after evaluating: ext.drawBuffersWEBGL([gl.NONE]) +PASS ext.drawBuffersWEBGL([gl.NONE]) was expected value: NO_ERROR. PASS gl.getParameter(ext.DRAW_BUFFER0_WEBGL) is gl.NONE -PASS getError was expected value: NO_ERROR : after evaluating: ext.drawBuffersWEBGL([gl.BACK]) +PASS ext.drawBuffersWEBGL([gl.BACK]) was expected value: NO_ERROR. PASS gl.getParameter(ext.DRAW_BUFFER0_WEBGL) is gl.BACK PASS getError was expected value: NO_ERROR : there should be no errors test shaders enabled vertex shader -fragement shaderPASS GL_EXT_draw_buffers should be defined as 1 in GLSL -fragement shaderPASS should be green +fragement shader +PASS GL_EXT_draw_buffers should be defined as 1 in GLSL +fragement shader +PASS should be green PASS getError was expected value: NO_ERROR : there should be no errors test attachment enabled @@ -109,7 +114,8 @@ PASS getError was expected value: NO_ERROR : there should be no errors --------- draw tests ----------- -fragement shaderPASS gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_COMPLETE +fragement shader +PASS gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_COMPLETE PASS gl.checkFramebufferStatus(gl.FRAMEBUFFER) is gl.FRAMEBUFFER_COMPLETE test that each texture got the correct color. PASS attachment 0 should be 255,0,0,0 @@ -196,10 +202,10 @@ attachment: 1 = 0x8ce1, TEXTURE attachment: 2 = 0x8ce2, TEXTURE attachment: 3 = 0x8ce3, TEXTURE -attachment: 4 = 0x8ce4, NO_ERROR -attachment: 5 = 0x8ce5, NO_ERROR -attachment: 6 = 0x8ce6, NO_ERROR -attachment: 7 = 0x8ce7, NO_ERROR +attachment: 4 = 0x8ce4, POINTS +attachment: 5 = 0x8ce5, POINTS +attachment: 6 = 0x8ce6, POINTS +attachment: 7 = 0x8ce7, POINTS PASS attachment 0 should be 0,255,0,255 PASS attachment 1 should be 0,255,0,255 PASS attachment 2 should be 0,255,0,255 @@ -220,24 +226,41 @@ PASS attachment 7 should be 0,0,0,0 test clearing framebuffer that only has second half of attachments -attachment: 0 = COLOR_ATTACHMENT0, NO_ERROR -attachment: 1 = 0x8ce1, NO_ERROR -attachment: 2 = 0x8ce2, NO_ERROR -attachment: 3 = 0x8ce3, NO_ERROR +attachment: 0 = COLOR_ATTACHMENT0, POINTS +attachment: 1 = 0x8ce1, POINTS +attachment: 2 = 0x8ce2, POINTS +attachment: 3 = 0x8ce3, POINTS attachment: 4 = 0x8ce4, TEXTURE attachment: 5 = 0x8ce5, TEXTURE attachment: 6 = 0x8ce6, TEXTURE attachment: 7 = 0x8ce7, TEXTURE -framebuffer not complete +PASS attachment 0 should be 0,0,0,0 +PASS attachment 1 should be 0,0,0,0 +PASS attachment 2 should be 0,0,0,0 +PASS attachment 3 should be 0,0,0,0 +PASS attachment 4 should be 0,255,0,255 +PASS attachment 5 should be 0,255,0,255 +PASS attachment 6 should be 0,255,0,255 +PASS attachment 7 should be 0,255,0,255 + +test drawing to framebuffer that only has second half of attachments +PASS attachment 0 should be 0,0,0,0 +PASS attachment 1 should be 0,0,0,0 +PASS attachment 2 should be 0,0,0,0 +PASS attachment 3 should be 0,0,0,0 +PASS attachment 4 should be 255,0,255,0 +PASS attachment 5 should be 0,255,255,0 +PASS attachment 6 should be 255,255,255,0 +PASS attachment 7 should be 0,0,0,255 test clearing framebuffer that only has first and last attachments attachment: 0 = COLOR_ATTACHMENT0, TEXTURE -attachment: 1 = 0x8ce1, NO_ERROR -attachment: 2 = 0x8ce2, NO_ERROR -attachment: 3 = 0x8ce3, NO_ERROR -attachment: 4 = 0x8ce4, NO_ERROR -attachment: 5 = 0x8ce5, NO_ERROR -attachment: 6 = 0x8ce6, NO_ERROR +attachment: 1 = 0x8ce1, POINTS +attachment: 2 = 0x8ce2, POINTS +attachment: 3 = 0x8ce3, POINTS +attachment: 4 = 0x8ce4, POINTS +attachment: 5 = 0x8ce5, POINTS +attachment: 6 = 0x8ce6, POINTS attachment: 7 = 0x8ce7, TEXTURE PASS attachment 0 should be 0,255,0,255 PASS attachment 1 should be 0,0,0,0 @@ -259,15 +282,32 @@ PASS attachment 7 should be 0,0,0,255 test clearing framebuffer that has all but the first and last attachments -attachment: 0 = COLOR_ATTACHMENT0, NO_ERROR +attachment: 0 = COLOR_ATTACHMENT0, POINTS attachment: 1 = 0x8ce1, TEXTURE attachment: 2 = 0x8ce2, TEXTURE attachment: 3 = 0x8ce3, TEXTURE attachment: 4 = 0x8ce4, TEXTURE attachment: 5 = 0x8ce5, TEXTURE attachment: 6 = 0x8ce6, TEXTURE -attachment: 7 = 0x8ce7, NO_ERROR -framebuffer not complete +attachment: 7 = 0x8ce7, POINTS +PASS attachment 0 should be 0,0,0,0 +PASS attachment 1 should be 0,255,0,255 +PASS attachment 2 should be 0,255,0,255 +PASS attachment 3 should be 0,255,0,255 +PASS attachment 4 should be 0,255,0,255 +PASS attachment 5 should be 0,255,0,255 +PASS attachment 6 should be 0,255,0,255 +PASS attachment 7 should be 0,0,0,0 + +test drawing to framebuffer that has all but the first and last attachments +PASS attachment 0 should be 0,0,0,0 +PASS attachment 1 should be 0,255,0,0 +PASS attachment 2 should be 255,255,0,0 +PASS attachment 3 should be 0,0,255,0 +PASS attachment 4 should be 255,0,255,0 +PASS attachment 5 should be 0,255,255,0 +PASS attachment 6 should be 255,255,255,0 +PASS attachment 7 should be 0,0,0,0 test switching between fbos keeps drawbuffer state PASS attachment 0 should be 255,0,0,255