i965: Remove the now unused intel_renderbuffer::draw_offset field.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 26 Jul 2011 04:13:43 +0000 (21:13 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 28 Jul 2011 21:04:39 +0000 (14:04 -0700)
The previous commit removed the last use of this field.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h

index 7d6d9f271e632138d7345b695ad57ed1f2310bcc..e48d6ef9cbd5c6abfec2537045869c1a8eff56ca 100644 (file)
@@ -606,7 +606,6 @@ intel_renderbuffer_set_draw_offset(struct intel_renderbuffer *irb,
                                  zoffset,
                                  &dst_x, &dst_y);
 
-   irb->draw_offset = (dst_y * mt->region->pitch + dst_x) * mt->cpp;
    irb->draw_x = dst_x;
    irb->draw_y = dst_y;
 }
index f7f99a4f00cbb2f68af889c99036b1b0c031f924..2487994fde5f211c7f77304b399cccb96aee6bf3 100644 (file)
@@ -58,7 +58,6 @@ struct intel_renderbuffer
 
    /** \} */
 
-   GLuint draw_offset; /**< Offset of drawing address within the region */
    GLuint draw_x, draw_y; /**< Offset of drawing within the region */
 };