aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-19 14:47:24 -0800
committerKeith Whitwell <[email protected]>2009-11-19 14:47:24 -0800
commit25cbf9b4da7be45218f645102d6be5144be4291f (patch)
tree4fb96138cd49926eac4bdc09dea38c0cae486f24 /src/gallium/drivers/i965
parent6b1ede0110f855218119a7a3b26fe3b26aee1bbd (diff)
i965g: fix initialization of texture width/height/depth arrays
Will remove these arrays in another branch - they're completely redundant.
Diffstat (limited to 'src/gallium/drivers/i965')
-rw-r--r--src/gallium/drivers/i965/brw_screen_tex_layout.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gallium/drivers/i965/brw_screen_tex_layout.c b/src/gallium/drivers/i965/brw_screen_tex_layout.c
index bcdf8d8074f..f793fa8859e 100644
--- a/src/gallium/drivers/i965/brw_screen_tex_layout.c
+++ b/src/gallium/drivers/i965/brw_screen_tex_layout.c
@@ -101,16 +101,17 @@ brw_tex_set_level_info(struct brw_texture *tex,
GLuint x, GLuint y,
GLuint w, GLuint h, GLuint d)
{
- assert(tex->base.width[level] == w);
- assert(tex->base.height[level] == h);
- assert(tex->base.depth[level] == d);
- assert(tex->image_offset[level] == NULL);
- assert(nr_images >= 1);
if (BRW_DEBUG & DEBUG_TEXTURE)
debug_printf("%s level %d size: %d,%d,%d offset %d,%d (0x%x)\n", __FUNCTION__,
level, w, h, d, x, y, tex->level_offset[level]);
+ assert(tex->image_offset[level] == NULL);
+ assert(nr_images >= 1);
+
+ tex->base.width[level] = w;
+ tex->base.height[level] = h;
+ tex->base.depth[level] = d;
tex->level_offset[level] = (x + y * tex->pitch) * tex->cpp;
tex->nr_images[level] = nr_images;