aboutsummaryrefslogtreecommitdiffstats
path: root/find_lock/find_lock_exe.cpp
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2014-09-24 19:03:46 -0700
committerDavid 'Digit' Turner <digit@google.com>2014-09-24 19:06:49 -0700
commitdfd49832d5d2058a69486af32373fc90ddc69a3d (patch)
tree3c17f4252e1a0b04ae700410f8094b65add18749 /find_lock/find_lock_exe.cpp
parent9746f34af612629b65507e57f667d05e729fa057 (diff)
downloadsdk-dfd49832d5d2058a69486af32373fc90ddc69a3d.tar.gz
sdk-dfd49832d5d2058a69486af32373fc90ddc69a3d.tar.bz2
sdk-dfd49832d5d2058a69486af32373fc90ddc69a3d.zip
emulator/opengl/emugen: Ensure correct buffer alignment.
The decoders generated by emugen pass addresses that come directly from the stream to EGL/GL functions. Sometimes, these addresses are not properly padded with regards to the type of data being transfered and this can crash some implementations (e.g. OSMesa being compiled with -msse by default, and doesn't build without it). This patch introduces two helper classes in ProtocolUtils.h, named InputBuffer and OutputBuffer, which are used to auto-align buffer pointers, then make the generated decoder code use them. Change-Id: I345c7eecc230f62310ced5378b6344f419647e06
Diffstat (limited to 'find_lock/find_lock_exe.cpp')
0 files changed, 0 insertions, 0 deletions