Changeset 189838 in webkit
- Timestamp:
- Sep 15, 2015, 6:54:47 PM (10 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r189837 r189838 1 2015-09-15 Jinyoung Hur <hur.ims@navercorp.com> 2 3 [WebGL] Only require that the stencil value and write masks have as many bits set as the stencil buffer is deep 4 https://bugs.webkit.org/show_bug.cgi?id=149174 5 6 Reviewed by Dean Jackson. 7 8 Copied the stencil mask related tests from the webgl/1.0.2/resources/webgl_test_files/conformance/state/gl-get-calls.html. 9 10 It seems that there is a difference in the way that glGetIntegerV returns an unsigned int type value among 11 OpenGL implementatios. Some return the whole bits of value(e.g., 0xffffffff -> 0xffffffff), whereas some(e.g., ANGLE) 12 return a max-int-clamped value(e.g., 0xffffffff -> 0x7fffffff). 13 14 It would be good to make this test independent on the OpenGL implementations. 15 16 * fast/canvas/webgl/gl-get-calls-expected.txt: 17 * fast/canvas/webgl/gl-get-calls.html: 18 1 19 2015-09-15 Gyuyoung Kim <gyuyoung.kim@webkit.org> 2 20 -
trunk/LayoutTests/fast/canvas/webgl/gl-get-calls-expected.txt
r107107 r189838 55 55 PASS context.getParameter(context.STENCIL_BACK_PASS_DEPTH_PASS) is context.KEEP 56 56 PASS context.getParameter(context.STENCIL_BACK_REF) is 0 57 PASS context.getParameter(context.STENCIL_BACK_VALUE_MASK) is 0xFFFFFFFF58 PASS context.getParameter(context.STENCIL_BACK_WRITEMASK) is 0xFFFFFFFF57 PASS context.getParameter(context.STENCIL_BACK_VALUE_MASK) & minimumRequiredStencilMask is minimumRequiredStencilMask 58 PASS context.getParameter(context.STENCIL_BACK_WRITEMASK) & minimumRequiredStencilMask is minimumRequiredStencilMask 59 59 PASS context.getParameter(context.STENCIL_BITS) >= 0 is true 60 60 PASS context.getParameter(context.STENCIL_CLEAR_VALUE) is 0 … … 65 65 PASS context.getParameter(context.STENCIL_REF) is 0 66 66 PASS context.getParameter(context.STENCIL_TEST) is false 67 PASS context.getParameter(context.STENCIL_VALUE_MASK) is 0xFFFFFFFF68 PASS context.getParameter(context.STENCIL_WRITEMASK) is 0xFFFFFFFF67 PASS context.getParameter(context.STENCIL_VALUE_MASK) & minimumRequiredStencilMask is minimumRequiredStencilMask 68 PASS context.getParameter(context.STENCIL_WRITEMASK) & minimumRequiredStencilMask is minimumRequiredStencilMask 69 69 PASS context.getParameter(context.TEXTURE_BINDING_2D) is null 70 70 PASS context.getParameter(context.TEXTURE_BINDING_CUBE_MAP) is null -
trunk/LayoutTests/fast/canvas/webgl/gl-get-calls.html
r177772 r189838 18 18 debug("Canvas.getContext"); 19 19 20 var minimumRequiredStencilMask = 0; 20 21 var context = create3DContext(document.getElementById("canvas")); 21 22 if (!context) … … 82 83 shouldBe('context.getParameter(context.STENCIL_BACK_REF)', '0'); 83 84 84 shouldBe('context.getParameter(context.STENCIL_BACK_VALUE_MASK)', '0xFFFFFFFF'); 85 shouldBe('context.getParameter(context.STENCIL_BACK_WRITEMASK)', '0xFFFFFFFF'); 85 var stencilBits = context.getParameter(context.STENCIL_BITS); 86 minimumRequiredStencilMask = (1 << stencilBits) - 1; 87 88 shouldBe('context.getParameter(context.STENCIL_BACK_VALUE_MASK) & minimumRequiredStencilMask', 'minimumRequiredStencilMask'); 89 shouldBe('context.getParameter(context.STENCIL_BACK_WRITEMASK) & minimumRequiredStencilMask', 'minimumRequiredStencilMask'); 86 90 87 91 // If EXT_packed_depth_stencil is supported, STENCIL_BITS > 0; otherwise, STENCIL_BITS == 0. … … 95 99 shouldBe('context.getParameter(context.STENCIL_TEST)', 'false'); 96 100 97 shouldBe('context.getParameter(context.STENCIL_VALUE_MASK) ', '0xFFFFFFFF');98 shouldBe('context.getParameter(context.STENCIL_WRITEMASK) ', '0xFFFFFFFF');101 shouldBe('context.getParameter(context.STENCIL_VALUE_MASK) & minimumRequiredStencilMask', 'minimumRequiredStencilMask'); 102 shouldBe('context.getParameter(context.STENCIL_WRITEMASK) & minimumRequiredStencilMask', 'minimumRequiredStencilMask'); 99 103 100 104 shouldBe('context.getParameter(context.TEXTURE_BINDING_2D)', 'null');
Note:
See TracChangeset
for help on using the changeset viewer.