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

Issue 1493913003: Ensure that the code in the DXVA DX11 decoder which can potentially access the DX11 device context … (Closed)

Created:
5 years ago by ananta
Modified:
5 years ago
Reviewers:
DaleCurtis, jbauman
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, 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

Ensure that the code in the DXVA DX11 decoder which can potentially access the DX11 device context on the decoder thread is locked with the ID3D10Multithread interface. The ProcessInput call on the color converter does access the DX11 device context on the decoder thread to check states. This currently executes outside the lock. Moving it inside the lock. With this change the color converter ProcessInput and ProcessOutput calls are in the lock. Added a class AutoDX11DeviceLock to make the locking more seamless. The other change is to get rid of the begin streaming calls for the converter and the Flush calls on the context. These are not necessary now with the single device If this does not fix the Win8 bot flakiness the last step to try would be to move the copy texture call to the main thread. Failing that we need to go back to the two device model. All symptoms here point to an NVIDIA driver quirk. BUG=548383 TBR=dalecurtis Committed: https://crrev.com/fc9a5766e318f7d331961c87bbeb515df1d5b0f6 Cr-Commit-Position: refs/heads/master@{#363611}

Patch Set 1 #

Patch Set 2 : Remove commented out code #

Total comments: 2

Patch Set 3 : Rebased to tip #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -44 lines) Patch
M content/common/gpu/media/dxva_video_decode_accelerator_win.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M content/common/gpu/media/dxva_video_decode_accelerator_win.cc View 1 2 8 chunks +28 lines, -42 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (11 generated)
ananta
5 years ago (2015-12-03 03:02:04 UTC) #3
DaleCurtis
Defer to jbauman@ on this; I don't know these APIs well enough to provide anything ...
5 years ago (2015-12-03 22:09:24 UTC) #4
ananta
https://codereview.chromium.org/1493913003/diff/20001/content/common/gpu/media/dxva_video_decode_accelerator.cc File content/common/gpu/media/dxva_video_decode_accelerator.cc (right): https://codereview.chromium.org/1493913003/diff/20001/content/common/gpu/media/dxva_video_decode_accelerator.cc#newcode2034 content/common/gpu/media/dxva_video_decode_accelerator.cc:2034: AutoDX11DeviceLock device_lock(multi_threaded_.get()); On 2015/12/03 22:09:24, DaleCurtis wrote: > This ...
5 years ago (2015-12-03 22:11:02 UTC) #5
jbauman
lgtm
5 years ago (2015-12-04 02:06:32 UTC) #6
DaleCurtis
lgtm
5 years ago (2015-12-04 23:44:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493913003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493913003/20001
5 years ago (2015-12-05 01:08:25 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/103480) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years ago (2015-12-05 01:15:10 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493913003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493913003/20001
5 years ago (2015-12-07 19:34:54 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/132729) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, ...
5 years ago (2015-12-07 19:46:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1493913003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1493913003/40001
5 years ago (2015-12-07 21:09:41 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-07 22:51:53 UTC) #21
commit-bot: I haz the power
5 years ago (2015-12-07 22:52:44 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fc9a5766e318f7d331961c87bbeb515df1d5b0f6
Cr-Commit-Position: refs/heads/master@{#363611}

Powered by Google App Engine
This is Rietveld 408576698