summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_screen.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-03-08 13:57:14 -0700
committerBrian Paul <[email protected]>2010-03-08 16:26:44 -0700
commite836f35369784fd90657252dcaf75e66f2369068 (patch)
treefb5e7a2549a760f40092ea361b2ad17af2de6303 /src/gallium/drivers/i965/brw_screen.h
parent44eec2802323b1e6cb47dfcf0aeab6b4cfd1c110 (diff)
i965g: define BRW_MAX_TEXTURE_2D/3D_LEVELS
Diffstat (limited to 'src/gallium/drivers/i965/brw_screen.h')
-rw-r--r--src/gallium/drivers/i965/brw_screen.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gallium/drivers/i965/brw_screen.h b/src/gallium/drivers/i965/brw_screen.h
index 7226d9228b7..e0f3cd2a9fe 100644
--- a/src/gallium/drivers/i965/brw_screen.h
+++ b/src/gallium/drivers/i965/brw_screen.h
@@ -100,6 +100,9 @@ struct brw_surface
};
+#define BRW_MAX_TEXTURE_2D_LEVELS 11 /* max 1024x1024 */
+#define BRW_MAX_TEXTURE_3D_LEVELS 8 /* max 128x128x128 */
+
struct brw_texture
{
@@ -107,9 +110,9 @@ 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];
+ unsigned *image_offset[BRW_MAX_TEXTURE_2D_LEVELS];
+ unsigned nr_images[BRW_MAX_TEXTURE_2D_LEVELS];
+ unsigned level_offset[BRW_MAX_TEXTURE_2D_LEVELS];
boolean compressed;
unsigned brw_target;