Closed
Bug 1325113
Opened 7 years ago
Closed 6 years ago
Implement WEBGL_compressed_texture_s3tc_srgb
Categories
(Core :: Graphics: CanvasWebGL, enhancement, P3)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: jujjyl, Assigned: svargas)
Details
(Keywords: dev-doc-complete, Whiteboard: [gfx-noted])
Attachments
(1 file, 1 obsolete file)
14.21 KB,
patch
|
jgilbert
:
review+
qdot
:
review+
|
Details | Diff | Splinter Review |
The new WebGL draft extension WEBGL_compressed_texture_s3tc_srgb adds support for DXTn/S3TC compressed textures in sRGB color space. Draft spec here: https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3tc_srgb/ It would be good to have this extension in Firefox, naturally behind the enable-draft-extensions pref until the draft becomes community approved. This support was asked by folks over at Unity, apparently Chrome already supports it.
Reporter | ||
Updated•7 years ago
|
Version: 50 Branch → Trunk
Updated•7 years ago
|
Priority: -- → P3
Whiteboard: [gfx-noted]
Updated•7 years ago
|
Keywords: dev-doc-needed
Comment 1•7 years ago
|
||
This is the corresponding Chromium bug and discussion: https://bugs.chromium.org/p/chromium/issues/detail?id=630498
Assignee | ||
Comment 2•6 years ago
|
||
Attachment #8872795 -
Flags: review?(jgilbert)
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → svargas
Comment 3•6 years ago
|
||
Comment on attachment 8872795 [details] [diff] [review] 0001-Bug-1325113-Implement-support-for-WEBGL_compressed_t.patch Review of attachment 8872795 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/canvas/WebGLFormats.cpp @@ +332,5 @@ > + // EXT_texture_compression_s3tc_srgb > + AddFormatInfo(FOO(COMPRESSED_SRGB_S3TC_DXT1_EXT ), 0, 1,1,1,0, 0,0, UnsizedFormat::RGB , false, ComponentType::NormUInt); > + AddFormatInfo(FOO(COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT), 0, 1,1,1,1, 0,0, UnsizedFormat::RGBA, false, ComponentType::NormUInt); > + AddFormatInfo(FOO(COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT), 0, 1,1,1,1, 0,0, UnsizedFormat::RGBA, false, ComponentType::NormUInt); > + AddFormatInfo(FOO(COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT), 0, 1,1,1,1, 0,0, UnsizedFormat::RGBA, false, ComponentType::NormUInt); 2nd-to-last arg should be `true` not `false`, since this is an SRGB format. ::: dom/webidl/WebGLRenderingContext.webidl @@ +827,5 @@ > + const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 0x8C4E; > + const GLenum COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 0x8C4F; > +}; > + > + Just one blank newline here, please! ::: gfx/gl/GLContext.cpp @@ +149,4 @@ > "GL_EXT_texture3D", > "GL_EXT_texture_compression_dxt1", > "GL_EXT_texture_compression_s3tc", > + "GL_EXT_texture_compression_s3tc_srgb", You forgot to remove this. ::: gfx/gl/GLContext.h @@ +414,4 @@ > EXT_texture3D, > EXT_texture_compression_dxt1, > EXT_texture_compression_s3tc, > + EXT_texture_compression_s3tc_srgb, You forgot to remove this.
Attachment #8872795 -
Flags: review?(jgilbert) → review-
Assignee | ||
Comment 4•6 years ago
|
||
Attachment #8872795 -
Attachment is obsolete: true
Attachment #8872800 -
Flags: review?(jgilbert)
Updated•6 years ago
|
Attachment #8872800 -
Flags: review?(jgilbert) → review+
Comment 5•6 years ago
|
||
Post the link to a try run for this change before I can land this.
Flags: needinfo?(svargas)
Assignee | ||
Comment 6•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=5f4cac6e670e8ac6f5dc32746382166a5d982221
Flags: needinfo?(svargas)
Comment 7•6 years ago
|
||
Comment on attachment 8872800 [details] [diff] [review] 0001-Bug-1325113-Implement-support-for-WEBGL_compressed_t.patch Needs DOM peer review for webidl/bindings changes.
Attachment #8872800 -
Flags: review?(kyle)
Updated•6 years ago
|
Attachment #8872800 -
Flags: review?(kyle) → review+
Pushed by jgilbert@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/b693eb4b9ef6 Implement support for WEBGL_compressed_texture_s3tc_srgb - r=jgilbert,qdot
Comment 9•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b693eb4b9ef6
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•6 years ago
|
Summary: Implement support for WebGL extension WEBGL_compressed_texture_s3tc_srgb → Implement WEBGL_compressed_texture_s3tc_srgb
Comment 10•6 years ago
|
||
Developer release notes for Fx 55: https://developer.mozilla.org/en-US/Firefox/Releases/55#WebGL New page: https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb Updated pages: https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API#Extensions https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Using_Extensions https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getExtension https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getSupportedExtensions https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getParameter https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D Compat data PR: https://github.com/mdn/browser-compat-data/pull/246
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•