Closed
Bug 1280499
Opened 9 years ago
Closed 9 years ago
Implement TexImage for PBOs (PIXEL_UNPACK_BUFFER)
Categories
(Core :: Graphics: CanvasWebGL, defect)
Tracking
()
RESOLVED
FIXED
mozilla50
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: jgilbert, Assigned: jgilbert)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 4 obsolete files)
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
So step one is to write the IDL, actually.
Assignee | ||
Comment 2•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/62976/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/62976/
Attachment #8768996 -
Flags: review?(khuey)
Attachment #8768997 -
Flags: review?(ethlin)
Attachment #8768998 -
Flags: review?(jmuizelaar)
Attachment #8768999 -
Flags: review?(ethlin)
Attachment #8769000 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 3•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/62978/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/62978/
Assignee | ||
Comment 4•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/62980/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/62980/
Assignee | ||
Comment 5•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/62982/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/62982/
Assignee | ||
Comment 6•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/62984/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/62984/
Assignee | ||
Comment 7•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8768998 -
Flags: review?(ethlin)
Attachment #8769000 -
Flags: review?(ethlin)
Assignee | ||
Updated•9 years ago
|
Blocks: webgl2-blockers
Assignee | ||
Comment 8•9 years ago
|
||
Comment 9•9 years ago
|
||
Comment on attachment 8768999 [details]
Bug 1280499 - Unlock PACK_BUFFER. -
https://reviewboard.mozilla.org/r/62982/#review60552
Attachment #8768999 -
Flags: review?(ethlin) → review+
Comment 10•9 years ago
|
||
Comment on attachment 8768997 [details]
Bug 1280499 - Add stubs and forwards. -
https://reviewboard.mozilla.org/r/62978/#review60600
Attachment #8768997 -
Flags: review?(ethlin) → review+
Comment 11•9 years ago
|
||
Comment on attachment 8768998 [details]
Bug 1280499 - Implement PBOs for textures. -
https://reviewboard.mozilla.org/r/62980/#review60966
::: dom/canvas/WebGLTextureUpload.cpp:93
(Diff revision 1)
> +{
> + const auto usedPixelsPerRow = CheckedUint32(blob->mSkipPixels) + blob->mWidth;
> + const auto usedRowsPerImage = CheckedUint32(blob->mSkipRows) + blob->mHeight;
> + const auto usedImages = CheckedUint32(blob->mSkipImages) + blob->mDepth;
> +
> + bool unpackVarsValid = false;
'unpackVarsValid' is unused.
Attachment #8768998 -
Flags: review?(ethlin) → review+
Comment 12•9 years ago
|
||
Comment on attachment 8769000 [details]
Bug 1280499 - Support paranoid uploading for nVidia. -
https://reviewboard.mozilla.org/r/62984/#review60970
Attachment #8769000 -
Flags: review?(ethlin) → review+
https://reviewboard.mozilla.org/r/62976/#review61830
::: dom/webidl/WebGL2RenderingContext.webidl:393
(Diff revision 1)
> ArrayBufferView data);
>
> + ////////////////
> + // Texture from PBO
> +
> + [Throws] // Can't actually throw.
....?
Flags: needinfo?(jgilbert)
Assignee | ||
Comment 14•9 years ago
|
||
https://reviewboard.mozilla.org/r/62976/#review61830
> ....?
A couple of the overloads can't actually throw, but the ones taking HTML elements such as HTMLImageElement can throw, and throws-or-not marking must match for our generator.
Ah, ok. "This overload can't actually throw" would be a better comment then.
Comment on attachment 8768996 [details]
Bug 1280499 - Allow SKIP_ROWS+height>IMAGE_HEIGHT and fix paranoid uploading. -
https://reviewboard.mozilla.org/r/62976/#review61834
Attachment #8768996 -
Flags: review?(khuey) → review+
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(jgilbert)
Comment 17•9 years ago
|
||
https://reviewboard.mozilla.org/r/62980/#review62374
::: dom/canvas/WebGLTextureUpload.cpp:410
(Diff revision 1)
> GLint yOffset, GLint zOffset, GLenum unpackFormat,
> GLenum unpackType, dom::ImageData* imageData)
> {
> + const bool usePBOs = false;
> webgl::PackingInfo pi;
> - if (mContext->ValidateUnpackInfo(funcName, unpackFormat, unpackType, &pi))
> + if (!mContext->ValidateUnpackInfo(funcName, usePBOs, unpackFormat, unpackType, &pi))
Was the missing '!' a bug that was introduced earlier?
::: dom/canvas/WebGLTextureUpload.cpp:1329
(Diff revision 1)
> auto dstFormat = dstUsage->format;
>
> if (!ValidateTargetForFormat(funcName, mContext, target, dstFormat))
> return;
>
> + const bool hasData = blob->HasData();
This change seems unrelated. The larger the patch the higher the cost of including these unrelated changes is on the reviewer.
Assignee | ||
Comment 18•9 years ago
|
||
(In reply to Jeff Muizelaar [:jrmuizel] from comment #17)
> https://reviewboard.mozilla.org/r/62980/#review62374
>
> ::: dom/canvas/WebGLTextureUpload.cpp:410
> (Diff revision 1)
> > GLint yOffset, GLint zOffset, GLenum unpackFormat,
> > GLenum unpackType, dom::ImageData* imageData)
> > {
> > + const bool usePBOs = false;
> > webgl::PackingInfo pi;
> > - if (mContext->ValidateUnpackInfo(funcName, unpackFormat, unpackType, &pi))
> > + if (!mContext->ValidateUnpackInfo(funcName, usePBOs, unpackFormat, unpackType, &pi))
>
> Was the missing '!' a bug that was introduced earlier?
Yes.
Comment 19•9 years ago
|
||
Comment on attachment 8768998 [details]
Bug 1280499 - Implement PBOs for textures. -
https://reviewboard.mozilla.org/r/62980/#review62992
Attachment #8768998 -
Flags: review?(jmuizelaar) → review+
Updated•9 years ago
|
Attachment #8769000 -
Flags: review?(jmuizelaar) → review+
Comment 20•9 years ago
|
||
Comment on attachment 8769000 [details]
Bug 1280499 - Support paranoid uploading for nVidia. -
https://reviewboard.mozilla.org/r/62984/#review62996
Assignee | ||
Comment 21•9 years ago
|
||
Comment on attachment 8768996 [details]
Bug 1280499 - Allow SKIP_ROWS+height>IMAGE_HEIGHT and fix paranoid uploading. -
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/62976/diff/1-2/
Attachment #8768996 -
Attachment description: Bug 1280499 - Add webidl. - → Bug 1280499 - Allow SKIP_ROWS+height>IMAGE_HEIGHT and fix paranoid uploading. -
Attachment #8768996 -
Flags: review+ → review?(jmuizelaar)
Assignee | ||
Updated•9 years ago
|
Attachment #8768997 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8768998 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8768999 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8769000 -
Attachment is obsolete: true
Updated•9 years ago
|
Keywords: dev-doc-needed
Updated•9 years ago
|
Attachment #8768996 -
Flags: review?(jmuizelaar) → review+
Comment 22•9 years ago
|
||
Comment on attachment 8768996 [details]
Bug 1280499 - Allow SKIP_ROWS+height>IMAGE_HEIGHT and fix paranoid uploading. -
https://reviewboard.mozilla.org/r/62976/#review63722
Comment 23•9 years ago
|
||
Pushed by jgilbert@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/76ebe845bed9
Add webidl. - r=khuey
https://hg.mozilla.org/integration/mozilla-inbound/rev/4be2f9c41dd3
Add stubs and forwards. - r=ethlin
https://hg.mozilla.org/integration/mozilla-inbound/rev/1326de2b7d1f
Implement PBOs for textures. - r=jrmuizel
https://hg.mozilla.org/integration/mozilla-inbound/rev/07259f1b5eb7
Unlock UNPACK_BUFFER. - r=ethlin
https://hg.mozilla.org/integration/mozilla-inbound/rev/eaf7778fef47
Support paranoid uploading for nVidia. - r=jrmuizel
https://hg.mozilla.org/integration/mozilla-inbound/rev/9e90e83343b6
Allow SKIP_ROWS+height>IMAGE_HEIGHT and fix paranoid uploading. - r=jrmuizel
https://hg.mozilla.org/integration/mozilla-inbound/rev/19b827d6c489
Mark tests.
Comment 24•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/76ebe845bed9
https://hg.mozilla.org/mozilla-central/rev/4be2f9c41dd3
https://hg.mozilla.org/mozilla-central/rev/1326de2b7d1f
https://hg.mozilla.org/mozilla-central/rev/07259f1b5eb7
https://hg.mozilla.org/mozilla-central/rev/eaf7778fef47
https://hg.mozilla.org/mozilla-central/rev/9e90e83343b6
https://hg.mozilla.org/mozilla-central/rev/19b827d6c489
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
Comment 25•8 years ago
|
||
Mentioned on:
https://developer.mozilla.org/en-US/Firefox/Releases/50#WebGL
The method signatures in the reference also mention the WebGL2-only gl.PIXEL_UNPACK_BUFFER:
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindBuffer
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D
https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D
https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D
https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•