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

Issue 2304813002: command buffers: correctly handle Flush(num_entries) (Closed)

Created:
4 years, 3 months ago by piman
Modified:
4 years, 3 months ago
Reviewers:
vmiura
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

command buffers: correctly handle Flush(num_entries) CommandBufferService should not accept put == num_entries, the client must wraparound to 0 (CommandBufferHelper does). CommandParser wraps to 0 and never sets get_ == num_entries, so CommandParser::IsEmpty would never become true. A test should have caught that but unfortunately it confused buffer size and number of entries. This fixes it. BUG=None CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/792420d5f706198281b3dcc6c26d23d38b2afd91 Cr-Commit-Position: refs/heads/master@{#417211}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M gpu/command_buffer/service/command_buffer_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/command_buffer_service_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (8 generated)
piman
4 years, 3 months ago (2016-09-02 03:35:34 UTC) #5
piman
ping?
4 years, 3 months ago (2016-09-07 23:14:00 UTC) #8
vmiura
On 2016/09/07 23:14:00, piman wrote: > ping? LGTM .
4 years, 3 months ago (2016-09-08 04:29:06 UTC) #9
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/2304813002/1
4 years, 3 months ago (2016-09-08 04:30:19 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-08 06:54:40 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 06:58:06 UTC) #14
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/792420d5f706198281b3dcc6c26d23d38b2afd91
Cr-Commit-Position: refs/heads/master@{#417211}

Powered by Google App Engine
This is Rietveld 408576698