diff options
author | Brian <[email protected]> | 2008-03-31 21:09:02 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2008-03-31 21:16:48 -0600 |
commit | e6c981f22c0b6469ef44e9d7a34113db34647fef (patch) | |
tree | 2abc42fe50bb2aa167667734c4558ffbb667841f /src/gallium/drivers/cell/common.h | |
parent | 5553a3b6757f0baaabbd67dd2f86d834d2f291ca (diff) |
cell: more work for multi-texture support
Diffstat (limited to 'src/gallium/drivers/cell/common.h')
-rw-r--r-- | src/gallium/drivers/cell/common.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/gallium/drivers/cell/common.h b/src/gallium/drivers/cell/common.h index 298812fc201..f430e88b9c1 100644 --- a/src/gallium/drivers/cell/common.h +++ b/src/gallium/drivers/cell/common.h @@ -36,6 +36,7 @@ #include "pipe/p_compiler.h" #include "pipe/p_util.h" #include "pipe/p_format.h" +#include "pipe/p_state.h" /** The standard assert macro doesn't seem to work reliably */ @@ -228,12 +229,20 @@ struct cell_command_release_verts }; +struct cell_command_sampler +{ + uint64_t opcode; /**< CELL_CMD_STATE_SAMPLER */ + uint unit; + struct pipe_sampler_state state; +}; + + struct cell_command_texture { - struct { - void *start; /**< Address in main memory */ - ushort width, height; - } texture[CELL_MAX_SAMPLERS]; + uint64_t opcode; /**< CELL_CMD_STATE_TEXTURE */ + uint unit; + void *start; /**< Address in main memory */ + ushort width, height; }; |