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

Issue 932963003: Add glClientWaitSync to GPU command buffer. (Closed)

Created:
5 years, 10 months ago by Zhenyao Mo
Modified:
5 years, 10 months ago
Reviewers:
piman
CC:
chromium-reviews, Ken Russell (switch to Gerrit), vmiura, no sievers, bajones
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add glClientWaitSync to GPU command buffer. Note that Chromium won't allow any non-zero value for |timeout| in WebGL 2. If Nacl decides differently on this, we can revisit the code in the future. This command has a GLuint64. Instead of upgrading command buffer to be 64 bit, we use a Union to decode the 64bit value to two 32bit values on the client side, and encode them back into one 64bit value on the service side. BUG=429053 TEST=gpu_unittests R=piman@chromium.org Committed: https://crrev.com/3366957e282c020cd471e23ef6bffb253edf790f Cr-Commit-Position: refs/heads/master@{#316917}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : Fix #

Patch Set 7 : Make flags non-static in the command #

Total comments: 2

Patch Set 8 : remove using of union #

Unified diffs Side-by-side diffs Delta from patch set Stats (+609 lines, -266 lines) Patch
M gpu/GLES2/gl2chromium_autogen.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 5 6 3 chunks +22 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_c_lib_autogen.h View 2 chunks +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_cmd_helper_autogen.h View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 2 3 4 5 6 7 1 chunk +22 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest.cc View 1 2 3 4 5 6 7 2 chunks +27 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest_autogen.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_autogen.h View 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_autogen.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h View 1 chunk +5 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_autogen.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h View 1 chunk +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/cmd_buffer_functions.txt View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_autogen.h View 1 2 3 4 5 6 2 chunks +68 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format_test_autogen.h View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_ids_autogen.h View 1 chunk +248 lines, -247 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc View 1 2 3 4 5 6 7 1 chunk +91 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h View 2 chunks +2 lines, -14 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h View 1 chunk +14 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_validation_autogen.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Zhenyao Mo
piman: please take a look. Others: FYI (feel free to review)
5 years, 10 months ago (2015-02-18 01:38:49 UTC) #2
piman
https://codereview.chromium.org/932963003/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/932963003/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode12071 gpu/command_buffer/service/gles2_cmd_decoder.cc:12071: // In Chromium we only allow |timeout| to be ...
5 years, 10 months ago (2015-02-18 16:22:07 UTC) #3
Zhenyao Mo
On 2015/02/18 16:22:07, piman (Very slow to review) wrote: > https://codereview.chromium.org/932963003/diff/60001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): ...
5 years, 10 months ago (2015-02-18 16:49:46 UTC) #4
Zhenyao Mo
Updated. Removed the limitation of timeout == 0 from service side. Also modified the union ...
5 years, 10 months ago (2015-02-18 17:32:30 UTC) #5
piman
I'm not really concerned about the client being able to block the GPU process for ...
5 years, 10 months ago (2015-02-18 18:38:00 UTC) #6
Zhenyao Mo
Removed union and used helper functions instead. https://codereview.chromium.org/932963003/diff/120001/gpu/command_buffer/common/gles2_cmd_format.h File gpu/command_buffer/common/gles2_cmd_format.h (right): https://codereview.chromium.org/932963003/diff/120001/gpu/command_buffer/common/gles2_cmd_format.h#newcode81 gpu/command_buffer/common/gles2_cmd_format.h:81: union GLuint64Union ...
5 years, 10 months ago (2015-02-18 19:10:37 UTC) #7
piman
LGTM, thanks
5 years, 10 months ago (2015-02-18 22:51:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/932963003/140001
5 years, 10 months ago (2015-02-18 23:35:20 UTC) #10
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-02-18 23:40:48 UTC) #11
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 23:42:13 UTC) #12
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/3366957e282c020cd471e23ef6bffb253edf790f
Cr-Commit-Position: refs/heads/master@{#316917}

Powered by Google App Engine
This is Rietveld 408576698