intel: Remove dead code from having to clip copyteximage source rect.
authorEric Anholt <eric@anholt.net>
Wed, 27 Jan 2010 02:04:03 +0000 (18:04 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 27 Jan 2010 02:27:07 +0000 (18:27 -0800)
mesa core does it now.  If only it did so for other entrypoints.

src/mesa/drivers/dri/intel/intel_tex_copy.c

index 79994b4..d67451c 100644 (file)
@@ -113,8 +113,6 @@ do_copy_texsubimage(struct intel_context *intel,
       drm_intel_bo *dst_bo = intel_region_buffer(intel,
                                                 intelImage->mt->region,
                                                 INTEL_WRITE_PART);
-      const GLint orig_x = x;
-      const GLint orig_y = y;
       GLuint image_x, image_y;
       GLshort src_pitch;
 
@@ -124,9 +122,6 @@ do_copy_texsubimage(struct intel_context *intel,
                                     intelImage->face,
                                     0,
                                     &image_x, &image_y);
-      /* Update dst for clipped src.  Need to also clip the source rect. */
-      dstx += x - orig_x;
-      dsty += y - orig_y;
 
       /* Can't blit to tiled buffers with non-tile-aligned offset. */
       if (intelImage->mt->region->tiling == I915_TILING_Y) {