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

Issue 2103773002: Occlusion query feature is already in GL ES3.0 spec, not an extension. (Closed)

Created:
4 years, 5 months ago by xinghua.cao
Modified:
4 years, 5 months ago
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Occlusion query feature is already in GL ES3.0 spec, not an extension. BUG=623871 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/2794a38ac40872a43fba5590297ef85ced1297b4 Cr-Commit-Position: refs/heads/master@{#404357}

Patch Set 1 #

Patch Set 2 : logical error #

Total comments: 5

Patch Set 3 : Address ken's comments #

Total comments: 4

Patch Set 4 : Address ken's commments, and add a unit test #

Total comments: 3

Patch Set 5 : Address zhenyao's comments #

Patch Set 6 : unit test cases fail #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -8 lines) Patch
M gpu/command_buffer/service/feature_info.cc View 1 2 3 4 2 chunks +7 lines, -2 lines 1 comment Download
M gpu/command_buffer/service/feature_info_unittest.cc View 1 2 3 4 5 4 chunks +21 lines, -6 lines 0 comments Download

Messages

Total messages: 53 (17 generated)
xinghua.cao
https://codereview.chromium.org/2103773002/diff/20001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2103773002/diff/20001/gpu/command_buffer/service/feature_info.cc#newcode1056 gpu/command_buffer/service/feature_info.cc:1056: On mesa+i965 platform, supports OpenGL ES 3.1, it has ...
4 years, 5 months ago (2016-06-28 10:19:15 UTC) #5
Zhenyao Mo
https://codereview.chromium.org/2103773002/diff/20001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2103773002/diff/20001/gpu/command_buffer/service/feature_info.cc#newcode1059 gpu/command_buffer/service/feature_info.cc:1059: } I think you need to be more careful ...
4 years, 5 months ago (2016-06-28 17:59:05 UTC) #6
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2103773002/diff/20001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2103773002/diff/20001/gpu/command_buffer/service/feature_info.cc#newcode1059 gpu/command_buffer/service/feature_info.cc:1059: } On 2016/06/28 17:59:05, Zhenyao Mo wrote: > I ...
4 years, 5 months ago (2016-06-28 23:58:59 UTC) #7
Zhenyao Mo
https://codereview.chromium.org/2103773002/diff/20001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2103773002/diff/20001/gpu/command_buffer/service/feature_info.cc#newcode1059 gpu/command_buffer/service/feature_info.cc:1059: } On 2016/06/28 23:58:59, Ken Russell wrote: > On ...
4 years, 5 months ago (2016-06-29 00:39:44 UTC) #8
xinghua.cao
https://codereview.chromium.org/2103773002/diff/20001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2103773002/diff/20001/gpu/command_buffer/service/feature_info.cc#newcode1059 gpu/command_buffer/service/feature_info.cc:1059: } On 2016/06/29 00:39:44, Zhenyao Mo wrote: > On ...
4 years, 5 months ago (2016-06-29 10:40:09 UTC) #9
Ken Russell (switch to Gerrit)
lgtm
4 years, 5 months ago (2016-06-29 22:28:37 UTC) #10
Ken Russell (switch to Gerrit)
Sorry, one more comment. Also, could you please add a unit test for this change? ...
4 years, 5 months ago (2016-06-29 22:29:56 UTC) #11
yunchao
https://codereview.chromium.org/2103773002/diff/40001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2103773002/diff/40001/gpu/command_buffer/service/feature_info.cc#newcode1057 gpu/command_buffer/service/feature_info.cc:1057: gl_version_info_->IsAtLeastGLES(3, 0); This CL is used to fix crbug ...
4 years, 5 months ago (2016-07-04 02:22:39 UTC) #12
xinghua.cao
https://codereview.chromium.org/2103773002/diff/40001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2103773002/diff/40001/gpu/command_buffer/service/feature_info.cc#newcode1057 gpu/command_buffer/service/feature_info.cc:1057: gl_version_info_->IsAtLeastGLES(3, 0); On 2016/07/04 02:22:39, yunchao wrote: > This ...
4 years, 5 months ago (2016-07-04 10:20:30 UTC) #13
Zhenyao Mo
https://codereview.chromium.org/2103773002/diff/60001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2103773002/diff/60001/gpu/command_buffer/service/feature_info.cc#newcode1060 gpu/command_buffer/service/feature_info.cc:1060: if (have_ext_occlusion_query_boolean || You should use context_type_ is ES3 ...
4 years, 5 months ago (2016-07-04 16:06:05 UTC) #14
xinghua.cao
https://codereview.chromium.org/2103773002/diff/60001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2103773002/diff/60001/gpu/command_buffer/service/feature_info.cc#newcode1060 gpu/command_buffer/service/feature_info.cc:1060: if (have_ext_occlusion_query_boolean || On 2016/07/04 16:06:05, Zhenyao Mo wrote: ...
4 years, 5 months ago (2016-07-05 14:21:23 UTC) #15
Zhenyao Mo
https://codereview.chromium.org/2103773002/diff/60001/gpu/command_buffer/service/feature_info.cc File gpu/command_buffer/service/feature_info.cc (right): https://codereview.chromium.org/2103773002/diff/60001/gpu/command_buffer/service/feature_info.cc#newcode1060 gpu/command_buffer/service/feature_info.cc:1060: if (have_ext_occlusion_query_boolean || On 2016/07/05 14:21:23, xinghua.cao wrote: > ...
4 years, 5 months ago (2016-07-05 21:32:06 UTC) #16
Ken Russell (switch to Gerrit)
LGTM again. This seems fine as written.
4 years, 5 months ago (2016-07-06 19:31:21 UTC) #17
Zhenyao Mo
lgtm as well. thanks.
4 years, 5 months ago (2016-07-06 19:46:57 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2103773002/80001
4 years, 5 months ago (2016-07-07 02:03:35 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/186960)
4 years, 5 months ago (2016-07-07 02:32:54 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2103773002/100001
4 years, 5 months ago (2016-07-07 06:22:01 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 07:26:58 UTC) #26
xinghua.cao
On 2016/07/06 19:46:57, Zhenyao Mo wrote: > lgtm as well. thanks. Hi, ken & zhenyao, ...
4 years, 5 months ago (2016-07-07 07:36:46 UTC) #27
Zhenyao Mo
lgtm again
4 years, 5 months ago (2016-07-07 20:21:15 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2103773002/100001
4 years, 5 months ago (2016-07-07 20:21:55 UTC) #30
Ken Russell (switch to Gerrit)
lgtm again too
4 years, 5 months ago (2016-07-07 20:26:22 UTC) #31
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 20:27:31 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2103773002/100001
4 years, 5 months ago (2016-07-08 05:12:28 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/100453)
4 years, 5 months ago (2016-07-08 09:27:46 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2103773002/100001
4 years, 5 months ago (2016-07-08 10:00:27 UTC) #39
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-08 10:37:38 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2103773002/100001
4 years, 5 months ago (2016-07-08 10:39:32 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-08 14:11:30 UTC) #45
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/2794a38ac40872a43fba5590297ef85ced1297b4 Cr-Commit-Position: refs/heads/master@{#404357}
4 years, 5 months ago (2016-07-08 14:13:01 UTC) #47
xinghua.cao
On 2016/07/07 20:26:22, Ken Russell wrote: > lgtm again too Hi, Ken & zhenyao, Beacuse ...
4 years, 5 months ago (2016-07-12 07:51:37 UTC) #48
yunchao
Yes, I think you should extend this into OGL context too. A suggestion is listed ...
4 years, 5 months ago (2016-07-12 09:32:16 UTC) #49
xinghua.cao
On 2016/07/12 09:32:16, yunchao wrote: > Yes, I think you should extend this into OGL ...
4 years, 5 months ago (2016-07-12 10:17:23 UTC) #50
Zhenyao Mo
On 2016/07/12 10:17:23, xinghua.cao wrote: > On 2016/07/12 09:32:16, yunchao wrote: > > Yes, I ...
4 years, 5 months ago (2016-07-12 17:03:36 UTC) #51
xinghua.cao
On 2016/07/12 17:03:36, Zhenyao Mo wrote: > On 2016/07/12 10:17:23, xinghua.cao wrote: > > On ...
4 years, 5 months ago (2016-07-13 09:51:57 UTC) #52
Ken Russell (switch to Gerrit)
4 years, 5 months ago (2016-07-13 20:40:41 UTC) #53
Message was sent while issue was closed.
On 2016/07/13 09:51:57, xinghua.cao wrote:
> On 2016/07/12 17:03:36, Zhenyao Mo wrote:
> > On 2016/07/12 10:17:23, xinghua.cao wrote:
> > > On 2016/07/12 09:32:16, yunchao wrote:
> > > > Yes, I think you should extend this into OGL context too. A suggestion
is
> > > listed
> > > > as below.
> > > > 
> > > >
> > >
> >
>
https://codereview.chromium.org/2103773002/diff/100001/gpu/command_buffer/ser...
> > > > File gpu/command_buffer/service/feature_info.cc (right):
> > > > 
> > > >
> > >
> >
>
https://codereview.chromium.org/2103773002/diff/100001/gpu/command_buffer/ser...
> > > > gpu/command_buffer/service/feature_info.cc:1048:
> > > > gl_version_info_->IsAtLeastGLES(3, 0);
> > > > We can use the code below: 
> > > > occlusion_query_in_core_feature = IsES3Capable();
> > > > 
> > > > Then use occlusion_query_in_core_feature, instead of
> > have_es3_occlusion_query
> > > to
> > > > cover both gles and OGL and other variants.
> > > 
> > > I had check OpenGL 1.5 spec, and it already has this feature. Do I need to
> set
> > > least opengl version is 1.5 here? May someone give me some good idea?
> > 
> > It's not whether Query functions exist. The key is how to map |target|
> depending
> > on the underlying functionality.
> > 
> > See QueryManager::AdjustTargetForEmulation (I think that function probably
> > should be updated that in ES3, ANY_SAMPLES_PASSED_CONSERVATIVE is actually
> > supported by the underlying driver.
> 
> Zhenyao, thank you for reply. I had checked the OpenGL spec,
ANY_SAMPLES_PASSED
> is introduced by OpenGL 3.3, 
> and ANY_SAMPLES_PASSED_CONSERVATIVE is introduced by OpenGL4.3. Does it mean
> cannot enable occlusion query
> feature on OpenGL3.3 context on mesa+i965 platform? Or is it possible to
change
> the ANY_SAMPLES_PASSED_CONSERVATIVE 
> to ANY_SAMPLES_PASSED in QueryManager::AdjustTargetForEmulation, which is like
> GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT?

Xinghua, I think what Mo is saying is that yes,
QueryManager::AdjustTargetForEmulation can be changed to use ANY_SAMPLES_PASSED
for OpenGL versions >= 3.3 and < 4.3. Please submit a CL. Thanks.

Powered by Google App Engine
This is Rietveld 408576698