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

Issue 194303002: Blacklist GLX indirect rendering (Closed)

Created:
6 years, 9 months ago by piman
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, piman+watch_chromium.org, jam, darin-cc_chromium.org
Visibility:
Public.

Description

Blacklist GLX indirect rendering Several part to this CL: 1- Implement gathering the direct rendering information. It needs a context, so it is done through the CollectGraphicsInfoGL hook 2- Implement logic to hook the information to the blacklist 3- In some cases, indirect rendering causes creating surfaces/contexts, needed to collect the info, to fail. So expose the failure mode (fatal vs non-fatal) to the caller so that we can fully fail GPU things in that case. BUG=72373, 339244 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=258721

Patch Set 1 #

Patch Set 2 : forgot android #

Patch Set 3 : rebase #

Total comments: 1

Patch Set 4 : Fix various bugs #

Total comments: 5

Patch Set 5 : fix test #

Total comments: 3

Patch Set 6 : Don't send GpuHostMsg_GraphicsInfoCollected from GpuChildThread::OnInitialize #

Patch Set 7 : rebase #

Patch Set 8 : fix android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -66 lines) Patch
M content/browser/gpu/gpu_internals_ui.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/gpu/gpu_child_thread.cc View 1 2 3 4 5 6 4 chunks +16 lines, -11 lines 0 comments Download
M content/gpu/gpu_main.cc View 1 chunk +13 lines, -2 lines 0 comments Download
M gpu/config/gpu_control_list.h View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M gpu/config/gpu_control_list.cc View 1 2 3 4 chunks +19 lines, -0 lines 0 comments Download
M gpu/config/gpu_control_list_format.txt View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/config/gpu_control_list_number_info_unittest.cc View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M gpu/config/gpu_info.h View 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/config/gpu_info.cc View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M gpu/config/gpu_info_collector.h View 3 chunks +16 lines, -5 lines 0 comments Download
M gpu/config/gpu_info_collector.cc View 1 2 3 3 chunks +11 lines, -5 lines 0 comments Download
M gpu/config/gpu_info_collector_android.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M gpu/config/gpu_info_collector_mac.mm View 4 chunks +7 lines, -6 lines 0 comments Download
M gpu/config/gpu_info_collector_ozone.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M gpu/config/gpu_info_collector_win.cc View 1 2 3 4 5 6 7 chunks +15 lines, -14 lines 0 comments Download
M gpu/config/gpu_info_collector_x11.cc View 6 chunks +10 lines, -11 lines 0 comments Download
M gpu/config/software_rendering_list_json.cc View 1 2 3 2 chunks +13 lines, -2 lines 0 comments Download
M ui/gl/gl_glx_api_implementation.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/gl/gl_implementation.h View 1 chunk +3 lines, -1 line 0 comments Download
M ui/gl/gl_implementation.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (0 generated)
piman
6 years, 9 months ago (2014-03-11 04:36:14 UTC) #1
Zhenyao Mo
On 2014/03/11 04:36:14, piman wrote: LGTM It would be nice to display this piece of ...
6 years, 9 months ago (2014-03-11 17:10:52 UTC) #2
Zhenyao Mo
On 2014/03/11 17:10:52, Zhenyao Mo wrote: > On 2014/03/11 04:36:14, piman wrote: > > LGTM ...
6 years, 9 months ago (2014-03-11 19:47:55 UTC) #3
piman
I'm happy to add the code to show that info on about:gpu, but I'm not ...
6 years, 9 months ago (2014-03-11 19:50:18 UTC) #4
Zhenyao Mo
The about:gpu code is in https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/gpu/gpu_internals_ui.h&q=gpu_internal&sq=package:chromium and https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/resources/gpu/
6 years, 9 months ago (2014-03-11 19:59:37 UTC) #5
Ken Russell (switch to Gerrit)
On 2014/03/11 19:50:18, piman wrote: > +kbr: it seems that this CL fails on the ...
6 years, 9 months ago (2014-03-11 20:50:07 UTC) #6
Ken Russell (switch to Gerrit)
On 2014/03/11 20:50:07, Ken Russell wrote: > On 2014/03/11 19:50:18, piman wrote: > > +kbr: ...
6 years, 9 months ago (2014-03-11 20:59:24 UTC) #7
Ken Russell (switch to Gerrit)
I have a feeling that the GPU sandbox may be interfering with direct GLX rendering. ...
6 years, 9 months ago (2014-03-11 21:13:15 UTC) #8
piman
On Tue, Mar 11, 2014 at 1:50 PM, <kbr@chromium.org> wrote: > On 2014/03/11 19:50:18, piman ...
6 years, 9 months ago (2014-03-11 21:18:12 UTC) #9
Ken Russell (switch to Gerrit)
On 2014/03/11 21:18:12, piman wrote: > On Tue, Mar 11, 2014 at 1:50 PM, <mailto:kbr@chromium.org> ...
6 years, 9 months ago (2014-03-11 21:20:29 UTC) #10
piman
PTAL. I sent this to trybots again, we'll see what happens. https://codereview.chromium.org/194303002/diff/60001/content/browser/gpu/gpu_internals_ui.cc File content/browser/gpu/gpu_internals_ui.cc (right): ...
6 years, 9 months ago (2014-03-11 21:32:44 UTC) #11
piman
+cevans for the trivial change to gpu_messages.h
6 years, 9 months ago (2014-03-11 21:33:14 UTC) #12
piman
+cevans for the trivial change to gpu_messages.h
6 years, 9 months ago (2014-03-11 21:33:18 UTC) #13
Ken Russell (switch to Gerrit)
FYI: I'll remove the bogus mac_gpu_retina entries from the various PRESUBMIT.py scripts. That configuration doesn't ...
6 years, 9 months ago (2014-03-11 21:53:16 UTC) #14
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/194303002/diff/70001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/194303002/diff/70001/content/browser/gpu/gpu_process_host.cc#newcode756 content/browser/gpu/gpu_process_host.cc:756: GpuDataManagerImpl::GetInstance()->UpdateGpuInfo(gpu_info); Why was this "else" branch added? Is there ...
6 years, 9 months ago (2014-03-11 22:28:40 UTC) #15
Zhenyao Mo
https://codereview.chromium.org/194303002/diff/70001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/194303002/diff/70001/content/browser/gpu/gpu_process_host.cc#newcode756 content/browser/gpu/gpu_process_host.cc:756: GpuDataManagerImpl::GetInstance()->UpdateGpuInfo(gpu_info); I don't think this is necessary, as the ...
6 years, 9 months ago (2014-03-11 23:05:31 UTC) #16
piman
On Tue, Mar 11, 2014 at 3:28 PM, <kbr@chromium.org> wrote: > > https://codereview.chromium.org/194303002/diff/70001/ > content/browser/gpu/gpu_process_host.cc ...
6 years, 9 months ago (2014-03-11 23:51:05 UTC) #17
Zhenyao Mo
OK, sorry for missing the comment. LGTM
6 years, 9 months ago (2014-03-11 23:53:56 UTC) #18
Zhenyao Mo
https://codereview.chromium.org/194303002/diff/70001/content/gpu/gpu_child_thread.cc File content/gpu/gpu_child_thread.cc (right): https://codereview.chromium.org/194303002/diff/70001/content/gpu/gpu_child_thread.cc#newcode161 content/gpu/gpu_child_thread.cc:161: Send(new GpuHostMsg_GraphicsInfoCollected(gpu_info_)); By the way, since you update the ...
6 years, 9 months ago (2014-03-12 00:02:38 UTC) #19
piman
On 2014/03/12 00:02:38, Zhenyao Mo wrote: > https://codereview.chromium.org/194303002/diff/70001/content/gpu/gpu_child_thread.cc > File content/gpu/gpu_child_thread.cc (right): > > https://codereview.chromium.org/194303002/diff/70001/content/gpu/gpu_child_thread.cc#newcode161 ...
6 years, 9 months ago (2014-03-12 00:05:43 UTC) #20
Zhenyao Mo
On 2014/03/12 00:05:43, piman wrote: > On 2014/03/12 00:02:38, Zhenyao Mo wrote: > > > ...
6 years, 9 months ago (2014-03-12 00:15:07 UTC) #21
piman
On Tue, Mar 11, 2014 at 5:15 PM, <zmo@chromium.org> wrote: > On 2014/03/12 00:05:43, piman ...
6 years, 9 months ago (2014-03-12 00:32:42 UTC) #22
Zhenyao Mo
LGTM again
6 years, 9 months ago (2014-03-12 00:51:26 UTC) #23
Ken Russell (switch to Gerrit)
Sorry I missed your earlier comment about the race condition. LGTM
6 years, 9 months ago (2014-03-12 01:18:03 UTC) #24
piman
The CQ bit was checked by piman@chromium.org
6 years, 9 months ago (2014-03-12 01:21:54 UTC) #25
piman
-cevans +jschuh for gpu_messages.h
6 years, 9 months ago (2014-03-12 01:25:56 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/194303002/90001
6 years, 9 months ago (2014-03-12 01:36:08 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 02:24:05 UTC) #28
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=54843
6 years, 9 months ago (2014-03-12 02:24:06 UTC) #29
jschuh
ipc security lgtm: simple bool
6 years, 9 months ago (2014-03-12 03:17:27 UTC) #30
jschuh
The CQ bit was checked by jschuh@chromium.org
6 years, 9 months ago (2014-03-12 03:17:40 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/194303002/90001
6 years, 9 months ago (2014-03-12 03:21:04 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 14:58:09 UTC) #33
piman
The CQ bit was checked by piman@chromium.org
6 years, 9 months ago (2014-03-12 17:11:38 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/194303002/90001
6 years, 9 months ago (2014-03-12 17:13:27 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/194303002/90001
6 years, 9 months ago (2014-03-12 19:22:14 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 11:34:55 UTC) #38
piman
The CQ bit was checked by piman@chromium.org
6 years, 9 months ago (2014-03-13 18:10:38 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/194303002/90001
6 years, 9 months ago (2014-03-13 18:11:23 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/194303002/90001
6 years, 9 months ago (2014-03-14 00:15:41 UTC) #42
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 13:45:26 UTC) #43
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
6 years, 9 months ago (2014-03-14 13:45:27 UTC) #44
piman
PTAL. The initialization-time GpuInfo coming from the GpuChildThread is bogus when running in process (including ...
6 years, 9 months ago (2014-03-21 03:47:40 UTC) #45
piman
The CQ bit was checked by piman@chromium.org
6 years, 9 months ago (2014-03-21 21:14:34 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/194303002/120001
6 years, 9 months ago (2014-03-21 21:16:59 UTC) #47
commit-bot: I haz the power
6 years, 9 months ago (2014-03-22 00:37:20 UTC) #48
Message was sent while issue was closed.
Change committed as 258721

Powered by Google App Engine
This is Rietveld 408576698