DescriptionChanged 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. #
Messages
Total messages: 10 (0 generated)
|