diff options
author | Keith Whitwell <[email protected]> | 2009-11-01 12:08:14 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-11-01 12:08:14 +0000 |
commit | 9b18ca095503eb80f02db55baf9c35aa69ae1cc9 (patch) | |
tree | ce0814233d6965d15ce55337a005c16add89452a /src/gallium/drivers/i965/brw_screen.h | |
parent | e7b76000826ff4faf8bf6a834d55b50a2784c9f2 (diff) |
i965g: more work on compilation -- surface management
Diffstat (limited to 'src/gallium/drivers/i965/brw_screen.h')
-rw-r--r-- | src/gallium/drivers/i965/brw_screen.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_screen.h b/src/gallium/drivers/i965/brw_screen.h index efa27db1e0f..844c6355d50 100644 --- a/src/gallium/drivers/i965/brw_screen.h +++ b/src/gallium/drivers/i965/brw_screen.h @@ -32,6 +32,7 @@ #include "pipe/p_screen.h" #include "brw_reg.h" +#include "brw_structs.h" struct brw_winsys_screen; @@ -68,10 +69,23 @@ struct brw_texture { struct pipe_texture base; - ubyte shader_swizzle; + struct brw_winsys_buffer *bo; + struct brw_surface_state ss; + + unsigned brw_target; + unsigned pitch; + unsigned tiling; + unsigned cpp; }; +struct brw_surface +{ + struct pipe_surface base; + struct brw_surface_state ss; + struct brw_winsys_buffer *bo; +}; + /* * Cast wrappers */ @@ -87,6 +101,12 @@ brw_transfer(struct pipe_transfer *transfer) return (struct brw_transfer *)transfer; } +static INLINE struct brw_surface * +brw_surface(struct pipe_surface *surface) +{ + return (struct brw_surface *)surface; +} + static INLINE struct brw_buffer * brw_buffer(struct pipe_buffer *buffer) { |