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

Issue 1481523003: Check gl version before querying GL_MAX_SAMPLES (Closed)

Created:
5 years ago by Julien Isorce Samsung
Modified:
5 years ago
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

It requires at minumun GLES 3.0 or GL 3.0 or availabilty of at least one of these extensions: - GL_ANGLE_framebuffer_multisample - GL_APPLE_framebuffer_multisample - GL_EXT_framebuffer_multisample - GL_EXT_multisampled_render_to_texture - GL_NV_framebuffer_multisample Otherwise it generates GL_INVALID_ENUM. It does not lead to any problem except that gl error is set by this time. At least it avoids getting an error message when Mesa logging is enabled. BUG=564066 R=bajones@chromium.org, kbr@chromium.org, zmo@chromium.org TEST= export MESA_DEBUG Review URL: https://codereview.chromium.org/1481523003 Committed: https://crrev.com/246d1be5b308907e8e7c1cbc73b904f25049576d Cr-Commit-Position: refs/heads/master@{#363072}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -3 lines) Patch
M gpu/config/gpu_info_collector.cc View 1 2 3 2 chunks +18 lines, -1 line 0 comments Download
M gpu/config/gpu_info_collector_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (13 generated)
Julien Isorce Samsung
5 years ago (2015-11-25 18:03:31 UTC) #1
Zhenyao Mo
https://codereview.chromium.org/1481523003/diff/1/gpu/config/gpu_info_collector.cc File gpu/config/gpu_info_collector.cc (right): https://codereview.chromium.org/1481523003/diff/1/gpu/config/gpu_info_collector.cc#newcode111 gpu/config/gpu_info_collector.cc:111: if (gl_info.IsAtLeastGL(3, 0) || gl_info.IsAtLeastGLES(3, 0)) It's more complicated. ...
5 years ago (2015-11-25 18:09:25 UTC) #2
Julien Isorce Samsung
On 2015/11/25 18:09:25, Zhenyao Mo wrote: > https://codereview.chromium.org/1481523003/diff/1/gpu/config/gpu_info_collector.cc#newcode111 > gpu/config/gpu_info_collector.cc:111: if (gl_info.IsAtLeastGL(3, 0) || > ...
5 years ago (2015-11-26 11:42:57 UTC) #4
Zhenyao Mo
Sorry not to give complete suggestion in the first place, but if you look at ...
5 years ago (2015-11-30 17:57:49 UTC) #5
Ken Russell (switch to Gerrit)
Please also file a bug about this and reference it from this CL description. Please ...
5 years ago (2015-12-01 00:26:28 UTC) #6
Julien Isorce Samsung
On 2015/11/30 17:57:49, Zhenyao Mo wrote: > Sorry not to give complete suggestion in the ...
5 years ago (2015-12-01 17:04:16 UTC) #8
Zhenyao Mo
LGTM https://codereview.chromium.org/1481523003/diff/40001/gpu/config/gpu_info_collector.cc File gpu/config/gpu_info_collector.cc (right): https://codereview.chromium.org/1481523003/diff/40001/gpu/config/gpu_info_collector.cc#newcode122 gpu/config/gpu_info_collector.cc:122: glGetIntegerv(GL_MAX_SAMPLES, &max_samples); nit: with multi-line condition, add { ...
5 years ago (2015-12-02 00:53:07 UTC) #9
Julien Isorce Samsung
On 2015/12/02 00:53:07, Zhenyao Mo wrote: > https://codereview.chromium.org/1481523003/diff/40001/gpu/config/gpu_info_collector.cc#newcode122 > gpu/config/gpu_info_collector.cc:122: glGetIntegerv(GL_MAX_SAMPLES, > &max_samples); > nit: ...
5 years ago (2015-12-02 12:57:11 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481523003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481523003/60001
5 years ago (2015-12-02 12:57:35 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/87047)
5 years ago (2015-12-02 13:18:12 UTC) #15
Julien Isorce Samsung
On 2015/12/02 13:18:12, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years ago (2015-12-02 14:20:58 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/1481523003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481523003/80001
5 years ago (2015-12-02 14:21:37 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-02 16:06:33 UTC) #20
Julien Isorce Samsung
Hi Zhenyao, are you ok with delta(s) between Patch Set 4 and 5 ? (Only ...
5 years ago (2015-12-02 21:59:15 UTC) #21
Ken Russell (switch to Gerrit)
On 2015/12/02 21:59:15, j.isorce wrote: > Hi Zhenyao, are you ok with delta(s) between Patch ...
5 years ago (2015-12-03 02:33:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481523003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481523003/100001
5 years ago (2015-12-03 14:52:07 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/104668)
5 years ago (2015-12-03 17:18:13 UTC) #27
Julien Isorce Samsung
On 2015/12/03 17:18:13, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years ago (2015-12-03 20:30:47 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481523003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481523003/100001
5 years ago (2015-12-03 20:34:03 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-12-03 21:53:45 UTC) #32
commit-bot: I haz the power
5 years ago (2015-12-03 21:54:38 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/246d1be5b308907e8e7c1cbc73b904f25049576d
Cr-Commit-Position: refs/heads/master@{#363072}

Powered by Google App Engine
This is Rietveld 408576698