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

Issue 152263002: Changed pack alignment of GPU command buffer commands. (Closed)

Created:
6 years, 10 months ago by vmiura
Modified:
6 years, 10 months ago
Reviewers:
no sievers, piman
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Changed pack alignment of GPU command buffer commands. Previously all command structures were declared as #pragma pack(1) which was forcing byte-by-byte access to the command buffer; less than optimal. The command buffer and all commands are 4 byte aligned, so changing to #pragma pack(4) should be safe and optimal. BUG=339151 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252777

Patch Set 1 #

Total comments: 2

Patch Set 2 : Sanity DCHECK on command buffer alignment. #

Patch Set 3 : #pragma pack value must be literal. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -5 lines) Patch
M gpu/command_buffer/common/cmd_buffer_common.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_format.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/transfer_buffer_manager.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
vmiura
Please take a look.
6 years, 10 months ago (2014-02-02 04:53:16 UTC) #1
vmiura
6 years, 10 months ago (2014-02-03 19:31:58 UTC) #2
piman
out-of-curiosity, do you have a micro benchmark that shows the benefit? I think we want ...
6 years, 10 months ago (2014-02-03 22:30:49 UTC) #3
vmiura
On 2014/02/03 22:30:49, piman wrote: > out-of-curiosity, do you have a micro benchmark that shows ...
6 years, 10 months ago (2014-02-03 22:44:26 UTC) #4
vmiura
https://codereview.chromium.org/152263002/diff/1/gpu/command_buffer/common/cmd_buffer_common.h File gpu/command_buffer/common/cmd_buffer_common.h (right): https://codereview.chromium.org/152263002/diff/1/gpu/command_buffer/common/cmd_buffer_common.h#newcode96 gpu/command_buffer/common/cmd_buffer_common.h:96: #pragma pack(push, 4) On 2014/02/03 22:30:49, piman wrote: > ...
6 years, 10 months ago (2014-02-03 22:44:38 UTC) #5
no sievers
lgtm
6 years, 10 months ago (2014-02-21 21:49:00 UTC) #6
vmiura
The CQ bit was checked by vmiura@chromium.org
6 years, 10 months ago (2014-02-22 00:14:13 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmiura@chromium.org/152263002/390001
6 years, 10 months ago (2014-02-22 00:15:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmiura@chromium.org/152263002/390001
6 years, 10 months ago (2014-02-22 01:31:57 UTC) #9
commit-bot: I haz the power
6 years, 10 months ago (2014-02-22 08:23:13 UTC) #10
Message was sent while issue was closed.
Change committed as 252777

Powered by Google App Engine
This is Rietveld 408576698