Switch to using packed structures for our command buffers.
These buffers are passed across a socket and don't necessarily have the same
alignment/padding on both 32-bit and 64-bit. This can result in subtle errors
in unpacking the command buffer.
Change-Id: Ic4fb7faa58b10553d55fd2ab3643ecc1a1c4ac4c
diff --git a/rsg_generator.c b/rsg_generator.c
index bbaaeb4..be2dacc 100644
--- a/rsg_generator.c
+++ b/rsg_generator.c
@@ -86,7 +86,7 @@
for (ct=0; ct < apiCount; ct++) {
const ApiEntry * api = &apis[ct];
fprintf(f, "#define RS_CMD_ID_%s %i\n", api->name, ct+1);
- fprintf(f, "struct RS_CMD_%s_rec {\n", api->name);
+ fprintf(f, "struct __attribute__((packed)) RS_CMD_%s_rec {\n", api->name);
//fprintf(f, " RsCommandHeader _hdr;\n");
for (ct2=0; ct2 < api->paramCount; ct2++) {