|
|
DescriptionFix TexStorage3D with compressed ETC2/EAC formats
These formats don't work for TexStorage3D if target is TEXTURE_3D.
TEXTURE_2D_ARRAY should work.
BUG=295792
TEST=conformance2/textures/misc/tex-storage-compressed-formats.html
Committed: https://crrev.com/5b5a54a2d7c287e09f644d04e29718b310949221
Cr-Commit-Position: refs/heads/master@{#360760}
Committed: https://crrev.com/8fe7430e2bea06a91f1e2611c29b2c0633aadca0
Cr-Commit-Position: refs/heads/master@{#361180}
Patch Set 1 #
Total comments: 2
Patch Set 2 : fix nits #
Total comments: 2
Patch Set 3 : remove duplicate code #
Messages
Total messages: 27 (8 generated)
qiankun.miao@intel.com changed reviewers: + bajones@chromium.org, kbr@chromium.org, zmo@chromium.org
This is a follow-up CL for https://github.com/KhronosGroup/WebGL/pull/1310 . PTAL.
LGTM, but I've got a couple of readability suggestions. https://codereview.chromium.org/1463503002/diff/1/third_party/WebKit/Source/m... File third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp (right): https://codereview.chromium.org/1463503002/diff/1/third_party/WebKit/Source/m... third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp:605: } A couple of really minor nits here: Could you change the logic to read "&& target != GL_TEXTURE_2D_ARRAY" instead of "&& target == GL_TEXTURE_3D"? I know it's functionally equivalent, but it states the purpose of the validation more explicitly. I had to re-read the statement a couple of times to make sure I knew what it was testing. Also, the error string reads strangely to me. I'd suggest simply "target for ETC2/EAC internal formats must be TEXTURE_2D_ARRAY", and the browser should provide context for the function which produced the error.
Thank you for review, brandon. https://codereview.chromium.org/1463503002/diff/1/third_party/WebKit/Source/m... File third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp (right): https://codereview.chromium.org/1463503002/diff/1/third_party/WebKit/Source/m... third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp:605: } On 2015/11/19 19:16:21, bajones wrote: > A couple of really minor nits here: Could you change the logic to read "&& > target != GL_TEXTURE_2D_ARRAY" instead of "&& target == GL_TEXTURE_3D"? I know > it's functionally equivalent, but it states the purpose of the validation more > explicitly. I had to re-read the statement a couple of times to make sure I knew > what it was testing. > > Also, the error string reads strangely to me. I'd suggest simply "target for > ETC2/EAC internal formats must be TEXTURE_2D_ARRAY", and the browser should > provide context for the function which produced the error. Done.
Thanks, LGTM again!
The CQ bit was checked by qiankun.miao@intel.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1463503002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1463503002/20001
https://codereview.chromium.org/1463503002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp (right): https://codereview.chromium.org/1463503002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp:109: const GLenum kCompressedTextureFormatsETC2EAC[] = { Less code duplication could have been achieved by removing these formats from kSupportedInternalFormatsStorage and writing below: m_supportedInternalFormatsStorage.insert(kSupportedInternalFormatsStorage, kSupportedInternalFormatsStorage + arraysize(kSupportedInternalFormatsStorage)); m_supportedInternalFormatsStorage.insert(kCompressedTextureFormatsETC2EAC, kCompressedTextureFormatsETC2EAC + arraysize(kCompressedTextureFormatsETC2EAC)); m_compressedTextureFormatsETC2EAC.insert(kCompressedTextureFormatsETC2EAC, kCompressedTextureFormatsETC2EAC + arraysize(kCompressedTextureFormatsETC2EAC));
https://codereview.chromium.org/1463503002/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp (right): https://codereview.chromium.org/1463503002/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp:109: const GLenum kCompressedTextureFormatsETC2EAC[] = { On 2015/11/19 23:25:55, Ken Russell wrote: > Less code duplication could have been achieved by removing these formats from > kSupportedInternalFormatsStorage and writing below: > > m_supportedInternalFormatsStorage.insert(kSupportedInternalFormatsStorage, > kSupportedInternalFormatsStorage + arraysize(kSupportedInternalFormatsStorage)); > m_supportedInternalFormatsStorage.insert(kCompressedTextureFormatsETC2EAC, > kCompressedTextureFormatsETC2EAC + arraysize(kCompressedTextureFormatsETC2EAC)); > m_compressedTextureFormatsETC2EAC.insert(kCompressedTextureFormatsETC2EAC, > kCompressedTextureFormatsETC2EAC + arraysize(kCompressedTextureFormatsETC2EAC)); Good suggestion! Done.
Thanks for the cleanup. LGTM
The CQ bit was checked by qiankun.miao@intel.com
The patchset sent to the CQ was uploaded after l-g-t-m from bajones@chromium.org Link to the patchset: https://codereview.chromium.org/1463503002/#ps40001 (title: "remove duplicate code")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1463503002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1463503002/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) ios_rel_device_ninja on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by qiankun.miao@intel.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1463503002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1463503002/40001
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/5b5a54a2d7c287e09f644d04e29718b310949221 Cr-Commit-Position: refs/heads/master@{#360760}
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1462143003/ by jmadill@chromium.org. The reason for reverting is: Failing Windows WebGL 2 CTS: https://build.chromium.org/p/chromium.gpu.fyi/builders/Win7%20Release%20%28NV... WebglConformance.conformance2_textures_misc_tex_storage_compressed_formats: Failure: getError expected: NO_ERROR. Was INVALID_OPERATION : texStorage3D should succeed for COMPRESSED_R11_EAC FAIL getError expected: NO_ERROR. Was INVALID_OPERATION : texStorage3D should succeed for COMPRESSED_R11_EAC getError expected: NO_ERROR. Was INVALID_OPERATION : texStorage3D should succeed for COMPRESSED_SIGNED_R11_EAC FAIL getError expected: NO_ERROR. Was INVALID_OPERATION : texStorage3D should succeed for COMPRESSED_SIGNED_R11_EAC getError expected: NO_ERROR. Was INVALID_OPERATION : texStorage3D should succeed for COMPRESSED_RG11_EAC etc.
Message was sent while issue was closed.
The issue is the conformance test in Chromium is out of date and incorrect. I'll roll conformance tests today and reland this CL.
Message was sent while issue was closed.
Description was changed from ========== Fix TexStorage3D with compressed ETC2/EAC formats These formats don't work for TexStorage3D if target is TEXTURE_3D. TEXTURE_2D_ARRAY should work. BUG=295792 TEST=conformance2/textures/misc/tex-storage-compressed-formats.html Committed: https://crrev.com/5b5a54a2d7c287e09f644d04e29718b310949221 Cr-Commit-Position: refs/heads/master@{#360760} ========== to ========== Fix TexStorage3D with compressed ETC2/EAC formats These formats don't work for TexStorage3D if target is TEXTURE_3D. TEXTURE_2D_ARRAY should work. BUG=295792 TEST=conformance2/textures/misc/tex-storage-compressed-formats.html Committed: https://crrev.com/5b5a54a2d7c287e09f644d04e29718b310949221 Cr-Commit-Position: refs/heads/master@{#360760} ==========
On 2015/11/20 18:31:45, zmo wrote: > The issue is the conformance test in Chromium is out of date and incorrect. > > I'll roll conformance tests today and reland this CL. Conformance test roll landed, so relanding this.
The CQ bit was checked by zmo@google.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1463503002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1463503002/40001
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/8fe7430e2bea06a91f1e2611c29b2c0633aadca0 Cr-Commit-Position: refs/heads/master@{#361180} |