Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Issue 1495113004: (Reland)WebGL 2: validate uniform block index (Closed)

Created:
5 years ago by yunchao
Modified:
4 years, 12 months ago
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

validate uniform block index. should generate INVALID_VALUE when index >= the value of ACTIVE_UNIFORM_BLOCK. BUG=565347 TEST=deqp/functional/gles3/negativestateapi.html Committed: https://crrev.com/68aa7b244494083167fbd3b62ab7315f1c1c242d Cr-Commit-Position: refs/heads/master@{#363471}

Patch Set 1 #

Total comments: 7

Patch Set 2 : addressed feedback from kbr@ and zmo@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -0 lines) Patch
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp View 1 3 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (19 generated)
yunchao
A small patch, PTAL. Thanks a lot!
5 years ago (2015-12-04 14:00:47 UTC) #4
Zhenyao Mo
https://codereview.chromium.org/1495113004/diff/1/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp (right): https://codereview.chromium.org/1495113004/diff/1/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp#newcode2324 third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp:2324: synthesizeGLError(GL_INVALID_ENUM, functionName, "invalid uniform block index"); Shouldn't this be ...
5 years ago (2015-12-04 20:17:10 UTC) #6
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1495113004/diff/1/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp (right): https://codereview.chromium.org/1495113004/diff/1/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp#newcode2324 third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp:2324: synthesizeGLError(GL_INVALID_ENUM, functionName, "invalid uniform block index"); On 2015/12/04 20:17:10, ...
5 years ago (2015-12-04 22:49:25 UTC) #7
yunchao
Thanks for your review, Zhenyao and Ken. The typos are fixed, could you have a ...
5 years ago (2015-12-04 23:39:43 UTC) #8
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1495113004/diff/1/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp File third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp (right): https://codereview.chromium.org/1495113004/diff/1/third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp#newcode2324 third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp:2324: synthesizeGLError(GL_INVALID_ENUM, functionName, "invalid uniform block index"); On 2015/12/04 23:39:43, ...
5 years ago (2015-12-04 23:46:03 UTC) #9
yunchao
Sorry, stay to late to submit this CL yesterday. And misunderstand you this morning... :( ...
5 years ago (2015-12-04 23:56:54 UTC) #12
Zhenyao Mo
lgtm
5 years ago (2015-12-05 00:00:15 UTC) #14
Ken Russell (switch to Gerrit)
On 2015/12/04 23:56:54, yunchao wrote: > Sorry, stay to late to submit this CL yesterday. ...
5 years ago (2015-12-05 00:00:16 UTC) #15
yunchao
On 2015/12/05 00:00:16, Ken Russell wrote: > On 2015/12/04 23:56:54, yunchao wrote: > > Sorry, ...
5 years ago (2015-12-05 00:02:18 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495113004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495113004/40001
5 years ago (2015-12-05 01:04:31 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_TIMED_OUT, no build URL) ...
5 years ago (2015-12-05 03:09:30 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495113004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495113004/40001
5 years ago (2015-12-05 15:10:01 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_TIMED_OUT, no build URL) ...
5 years ago (2015-12-05 17:12:31 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495113004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495113004/40001
5 years ago (2015-12-06 05:04:15 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/150699)
5 years ago (2015-12-06 06:33:43 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495113004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495113004/40001
5 years ago (2015-12-07 10:11:31 UTC) #30
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-07 13:03:44 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495113004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495113004/40001
5 years ago (2015-12-07 14:03:40 UTC) #34
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years ago (2015-12-07 14:08:20 UTC) #36
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/68aa7b244494083167fbd3b62ab7315f1c1c242d Cr-Commit-Position: refs/heads/master@{#363471}
5 years ago (2015-12-07 14:09:42 UTC) #38
Jamie Madill
A revert of this CL (patchset #2 id:40001) has been created in https://codereview.chromium.org/1502143004/ by jmadill@chromium.org. ...
5 years ago (2015-12-07 16:24:35 UTC) #39
yunchao
On 2015/12/07 16:24:35, Jamie Madill wrote: > A revert of this CL (patchset #2 id:40001) ...
5 years ago (2015-12-21 02:31:17 UTC) #40
Zhenyao Mo
4 years, 12 months ago (2015-12-21 21:58:52 UTC) #42
On 2015/12/21 02:31:17, yunchao wrote:
> On 2015/12/07 16:24:35, Jamie Madill wrote:
> > A revert of this CL (patchset #2 id:40001) has been created in
> > https://codereview.chromium.org/1502143004/ by mailto:jmadill@chromium.org.
> > 
> > The reason for reverting is: Fails the WebGL 2 CTS:
> > 
> >
>
http://build.chromium.org/p/chromium.gpu.fyi/builders/Mac%2010.9%20Release%20...
> >
>
http://build.chromium.org/p/chromium.gpu.fyi/builders/Linux%20Debug%20%28NVID...
> >
>
http://build.chromium.org/p/chromium.gpu.fyi/builders/Win7%20Release%20%28Int...
> > 
> > WebglConformance.conformance2_state_gl_enum_tests:
> > Failure: getError expected: INVALID_ENUM. Was INVALID_VALUE :
> > gl.getActiveUniformBlockParameter(program, 0,
> > desktopGL['UNIFORM_BLOCK_NAME_LENGTH']) should return INVALID_ENUM.
> > .
> 
> The failure above has been fixed by this pr:
> https://github.com/KhronosGroup/WebGL/pull/1358. 
> 
> Zhenyao and/or Brandon, could you help to roll WebGL conformance test suite?
> Then I can re-land this patch. Thanks a lot!

The roll is here: https://codereview.chromium.org/1544673002/

When it lands, I can reland this for you.

Powered by Google App Engine
This is Rietveld 408576698