diff options
author | Corbin Simpson <[email protected]> | 2009-01-23 02:46:52 -0800 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2009-02-01 23:30:26 -0800 |
commit | 8e11e0121466efa34cfc14d299b43455a30b198c (patch) | |
tree | 38c7c653431c3636635bd7fc3d68d6487967e414 /src/gallium/drivers/r300/r300_context.h | |
parent | 2f37387786f1d0d6beded5afc29d36f744f1c948 (diff) |
r300: Add initial pipe_texture handling.
Still primitive and needing to be fleshed out, but it's a start.
Diffstat (limited to 'src/gallium/drivers/r300/r300_context.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_context.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_context.h b/src/gallium/drivers/r300/r300_context.h index 3cb5df4e20e..f162aa4b640 100644 --- a/src/gallium/drivers/r300/r300_context.h +++ b/src/gallium/drivers/r300/r300_context.h @@ -84,6 +84,20 @@ struct r300_scissor_state { #define R300_NEW_SCISSOR 0x1000 #define R300_NEW_KITCHEN_SINK 0x1fff +struct r300_texture { + /* Parent class */ + struct pipe_texture tex; + + /* Offsets into the buffer. */ + unsigned offset[PIPE_MAX_TEXTURE_LEVELS]; + + /* Total size of this texture, in bytes. */ + unsigned size; + + /* Pipe buffer backing this texture. */ + struct pipe_buffer* buffer; +}; + struct r300_context { /* Parent class */ struct pipe_context context; |