Descriptioncommand 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 #
Messages
Total messages: 14 (8 generated)
|