RESOLVED FIXED 164008
Implement WebGL2RenderingContext::copyBufferSubData()
https://bugs.webkit.org/show_bug.cgi?id=164008
Summary Implement WebGL2RenderingContext::copyBufferSubData()
Myles C. Maxfield
Reported 2016-10-26 00:37:45 PDT
Implement WebGL2RenderingContext::copyBufferSubData()
Attachments
Patch (6.10 KB, patch)
2016-10-26 00:38 PDT, Myles C. Maxfield
no flags
Patch (123.18 KB, patch)
2016-10-28 22:23 PDT, Myles C. Maxfield
no flags
Patch (125.31 KB, patch)
2016-11-04 11:30 PDT, Myles C. Maxfield
dino: review+
Patch for committing (125.90 KB, patch)
2016-11-04 11:58 PDT, Myles C. Maxfield
commit-queue: commit-queue-
Archive of layout-test-results from ews101 for mac-yosemite (946.61 KB, application/zip)
2016-11-04 13:00 PDT, Build Bot
no flags
Myles C. Maxfield
Comment 1 2016-10-26 00:38:49 PDT
Myles C. Maxfield
Comment 2 2016-10-28 22:23:04 PDT
Myles C. Maxfield
Comment 3 2016-11-04 11:30:25 PDT
Dean Jackson
Comment 4 2016-11-04 11:38:56 PDT
Comment on attachment 293903 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=293903&action=review > Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:179 > + synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, "copyBufferSubData", "offset < 0"); This seems like the wrong message. > Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:183 > + synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "copyBufferSubData", "offset < 0"); This one is accurate :) I wonder why these are not uints in the API? > Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:189 > + synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "copyBufferSubData", "offset < 0"); This one is also wrong. > Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:194 > + if (!this->isErrorGeneratedOnOutOfBoundsAccesses()) { > + if (!writeBuffer->associateCopyBufferSubData(*readBuffer, static_cast<GC3Dintptr>(readOffset), static_cast<GC3Dintptr>(writeOffset), static_cast<GC3Dsizeiptr>(size))) { > + this->synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "copyBufferSubData", "offset out of range"); What don't I understand here? You're only doing the associate check if errors are NOT generated?
Myles C. Maxfield
Comment 5 2016-11-04 11:48:13 PDT
Comment on attachment 293903 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=293903&action=review >> Source/WebCore/html/canvas/WebGL2RenderingContext.cpp:194 >> + this->synthesizeGLError(GraphicsContext3D::INVALID_VALUE, "copyBufferSubData", "offset out of range"); > > What don't I understand here? You're only doing the associate check if errors are NOT generated? https://bugs.webkit.org/show_bug.cgi?id=164418
Myles C. Maxfield
Comment 6 2016-11-04 11:58:34 PDT
Created attachment 293904 [details] Patch for committing
WebKit Commit Bot
Comment 7 2016-11-04 12:33:31 PDT
Comment on attachment 293904 [details] Patch for committing Rejecting attachment 293904 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'validate-changelog', '--check-oops', '--non-interactive', 293904, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit ChangeLog entry in LayoutTests/ChangeLog contains OOPS!. Full output: http://webkit-queues.webkit.org/results/2462991
Build Bot
Comment 8 2016-11-04 13:00:22 PDT
Comment on attachment 293904 [details] Patch for committing Attachment 293904 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/2462997 New failing tests: inspector/sampling-profiler/call-frame-with-dom-functions.html
Build Bot
Comment 9 2016-11-04 13:00:26 PDT
Created attachment 293914 [details] Archive of layout-test-results from ews101 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-yosemite Platform: Mac OS X 10.10.5
Myles C. Maxfield
Comment 10 2016-11-04 13:12:42 PDT
Note You need to log in before you can comment on or make changes to this bug.