Mesa (gallium-dynamicstencilref): cell: adjust structure padding
Brian Paul
brianp at kemper.freedesktop.org
Fri Feb 12 18:12:15 UTC 2010
Module: Mesa
Branch: gallium-dynamicstencilref
Commit: 0087f9dc0690e5de139f89ea4577b1824b918757
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0087f9dc0690e5de139f89ea4577b1824b918757
Author: Brian Paul <brianp at vmware.com>
Date: Fri Feb 12 11:07:01 2010 -0700
cell: adjust structure padding
The size of some core Gallium state structures has changed so the
padding on some cell structs needed to be adjusted to keep them
a multiple of 16 bytes.
---
src/gallium/drivers/cell/common.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/cell/common.h b/src/gallium/drivers/cell/common.h
index 7f2b33c..bbb112f 100644
--- a/src/gallium/drivers/cell/common.h
+++ b/src/gallium/drivers/cell/common.h
@@ -230,6 +230,7 @@ struct cell_command_rasterizer
{
opcode_t opcode; /**< CELL_CMD_STATE_RASTERIZER */
struct pipe_rasterizer_state rasterizer;
+ uint32_t pad[1];
};
@@ -326,7 +327,7 @@ struct cell_command_sampler
opcode_t opcode; /**< CELL_CMD_STATE_SAMPLER */
uint unit;
struct pipe_sampler_state state;
- uint32_t pad_[2];
+ uint32_t pad_[3];
};
More information about the mesa-commit
mailing list