summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965/brw_screen.h
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-11-01 14:32:50 +0000
committerKeith Whitwell <keithw@vmware.com>2009-11-01 14:33:01 +0000
commit15e7a3b8bb6771d24e5bde7805ea394f9ce0a3ec (patch)
tree799656b83f902dd40895ac859d12dba5e50d4341 /src/gallium/drivers/i965/brw_screen.h
parent39448a9aa061291f4253ee2a1a42e2488e14233c (diff)
i965g: more files compiling
Diffstat (limited to 'src/gallium/drivers/i965/brw_screen.h')
-rw-r--r--src/gallium/drivers/i965/brw_screen.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_screen.h b/src/gallium/drivers/i965/brw_screen.h
index 844c6355d5..bd04e689d9 100644
--- a/src/gallium/drivers/i965/brw_screen.h
+++ b/src/gallium/drivers/i965/brw_screen.h
@@ -65,6 +65,11 @@ struct brw_buffer
boolean is_user_buffer;
};
+#define BRW_TILING_NONE 0
+#define BRW_TILING_Y 1
+#define BRW_TILING_X 2
+
+
struct brw_texture
{
struct pipe_texture base;
@@ -72,10 +77,17 @@ struct brw_texture
struct brw_winsys_buffer *bo;
struct brw_surface_state ss;
+ unsigned *image_offset[PIPE_MAX_TEXTURE_LEVELS];
+ unsigned nr_images[PIPE_MAX_TEXTURE_LEVELS];
+
+ unsigned level_offset[PIPE_MAX_TEXTURE_LEVELS];
+
+ boolean compressed;
unsigned brw_target;
unsigned pitch;
unsigned tiling;
unsigned cpp;
+ unsigned total_height;
};
@@ -128,5 +140,13 @@ brw_surface_bo( struct pipe_surface *surface );
unsigned
brw_surface_pitch( const struct pipe_surface *surface );
+/***********************************************************************
+ * Internal functions
+ */
+GLboolean brw_texture_layout(struct brw_screen *brw_screen,
+ struct brw_texture *tex );
+
+
+
#endif /* BRW_SCREEN_H */