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

Issue 238933003: Re-land: gpu: Add CHROMIUM_sync_query extension. (Closed)

Created:
6 years, 8 months ago by reveman
Modified:
6 years, 8 months ago
Reviewers:
epenner, no sievers, piman
CC:
chromium-reviews, piman+watch_chromium.org
Visibility:
Public.

Description

Re-land: gpu: Add CHROMIUM_sync_query extension. This adds a GL_COMMANDS_COMPLETED_CHROMIUM query target that provide a finer granularity of synchronizing GL command completion than offered by glFinish(). BUG=269808, 356871, 273274 TEST=gpu_unittests --gtest_filter=GLES2DecoderManualInitTest.BeginEndQueryEXTCommandsCompletedCHROMIUM Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264675

Patch Set 1 #

Total comments: 12

Patch Set 2 : address review feedback #

Total comments: 11

Patch Set 3 : address review feedback #

Patch Set 4 : include _autogen.h changes from running build_gles2_cmd_buffer.py #

Patch Set 5 : fix unit tests #

Patch Set 6 : remove SyncQueryBasic test as no guarantee this extension is available #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -3 lines) Patch
A gpu/GLES2/extensions/CHROMIUM/CHROMIUM_sync_query.txt View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
M gpu/GLES2/gl2extchromium.h View 1 chunk +9 lines, -0 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h View 1 2 3 6 chunks +9 lines, -1 line 0 comments Download
M gpu/command_buffer/service/feature_info.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/feature_info.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc View 1 2 3 4 5 6 chunks +75 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/query_manager.cc View 1 2 3 4 3 chunks +53 lines, -0 lines 0 comments Download
M ui/gl/gl_bindings.h View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
reveman
Please take a look. I'll make the compositor use this as a follow up.
6 years, 8 months ago (2014-04-15 15:27:22 UTC) #1
no sievers
https://codereview.chromium.org/238933003/diff/1/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/238933003/diff/1/gpu/command_buffer/service/feature_info.cc#newcode783 gpu/command_buffer/service/feature_info.cc:783: feature_flags_.arb_sync = true; I missed that es3 has this. ...
6 years, 8 months ago (2014-04-15 18:41:15 UTC) #2
no sievers
https://codereview.chromium.org/238933003/diff/1/gpu/command_buffer/service/query_manager.cc File gpu/command_buffer/service/query_manager.cc (right): https://codereview.chromium.org/238933003/diff/1/gpu/command_buffer/service/query_manager.cc#newcode433 gpu/command_buffer/service/query_manager.cc:433: sync_ = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0); On 2014/04/15 18:41:15, sievers wrote: ...
6 years, 8 months ago (2014-04-15 18:48:43 UTC) #3
reveman
PTAL https://codereview.chromium.org/238933003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc File gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc (right): https://codereview.chromium.org/238933003/diff/1/gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc#newcode7308 gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc:7308: GLsync gl_sync = reinterpret_cast<GLsync>(0xdeadbeef); On 2014/04/15 18:41:15, sievers ...
6 years, 8 months ago (2014-04-15 22:29:27 UTC) #4
piman
https://codereview.chromium.org/238933003/diff/20001/gpu/GLES2/gl2extchromium.h File gpu/GLES2/gl2extchromium.h (right): https://codereview.chromium.org/238933003/diff/20001/gpu/GLES2/gl2extchromium.h#newcode695 gpu/GLES2/gl2extchromium.h:695: /* GL_CHROMIUM_sync_query */ Can you write an extension for ...
6 years, 8 months ago (2014-04-15 22:41:12 UTC) #5
no sievers
https://codereview.chromium.org/238933003/diff/20001/gpu/command_buffer/service/query_manager.cc File gpu/command_buffer/service/query_manager.cc (right): https://codereview.chromium.org/238933003/diff/20001/gpu/command_buffer/service/query_manager.cc#newcode424 gpu/command_buffer/service/query_manager.cc:424: fence_.reset(gfx::GLFence::CreateWithoutFlush()); Make sure piman@ is ok with this being ...
6 years, 8 months ago (2014-04-15 23:53:37 UTC) #6
piman
https://codereview.chromium.org/238933003/diff/20001/gpu/command_buffer/build_gles2_cmd_buffer.py File gpu/command_buffer/build_gles2_cmd_buffer.py (right): https://codereview.chromium.org/238933003/diff/20001/gpu/command_buffer/build_gles2_cmd_buffer.py#newcode844 gpu/command_buffer/build_gles2_cmd_buffer.py:844: 'GL_COMMANDS_COMPLETED_CHROMIUM', We should only add this to the set ...
6 years, 8 months ago (2014-04-16 00:32:03 UTC) #7
reveman
https://codereview.chromium.org/238933003/diff/20001/gpu/GLES2/gl2extchromium.h File gpu/GLES2/gl2extchromium.h (right): https://codereview.chromium.org/238933003/diff/20001/gpu/GLES2/gl2extchromium.h#newcode695 gpu/GLES2/gl2extchromium.h:695: /* GL_CHROMIUM_sync_query */ On 2014/04/15 22:41:12, piman wrote: > ...
6 years, 8 months ago (2014-04-16 01:28:46 UTC) #8
piman
lgtm
6 years, 8 months ago (2014-04-16 01:33:12 UTC) #9
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 8 months ago (2014-04-16 01:57:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/238933003/60001
6 years, 8 months ago (2014-04-16 01:58:46 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-16 03:21:07 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-16 03:21:08 UTC) #13
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 8 months ago (2014-04-16 04:29:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/238933003/80001
6 years, 8 months ago (2014-04-16 04:30:09 UTC) #15
commit-bot: I haz the power
Change committed as 264173
6 years, 8 months ago (2014-04-16 11:37:12 UTC) #16
hayato
A revert of this CL has been created in https://codereview.chromium.org/240273006/ by hayato@chromium.org. The reason for ...
6 years, 8 months ago (2014-04-17 03:52:57 UTC) #17
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 8 months ago (2014-04-17 20:25:35 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/238933003/100001
6 years, 8 months ago (2014-04-17 20:26:09 UTC) #19
commit-bot: I haz the power
6 years, 8 months ago (2014-04-17 23:48:29 UTC) #20
Message was sent while issue was closed.
Change committed as 264675

Powered by Google App Engine
This is Rietveld 408576698