gallium: remove the copyHeight hack for compresssed formats
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 4 Sep 2008 16:31:50 +0000 (10:31 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 4 Sep 2008 16:31:50 +0000 (10:31 -0600)
src/mesa/state_tracker/st_texture.c

index fc0934367d8359a0454f79a8fda2d1a974958e16..29b16347625073f54bef26122c16bb29501925bc 100644 (file)
@@ -304,9 +304,6 @@ st_texture_image_copy(struct pipe_context *pipe,
    struct pipe_surface *dst_surface;
    GLuint i;
 
-   /* XXX this is a hack */
-   const GLuint copyHeight = dst->compressed ? height / 4 : height;
-
    for (i = 0; i < depth; i++) {
       GLuint srcLevel;
 
@@ -348,7 +345,7 @@ st_texture_image_copy(struct pipe_context *pipe,
                         0, 0, /* destX, Y */
                         src_surface,
                         0, 0, /* srcX, Y */
-                        width, copyHeight);
+                        width, height);
 
       screen->tex_surface_release(screen, &src_surface);
       screen->tex_surface_release(screen, &dst_surface);