intel: Fix CopyTexImage from tiled mipmap levels > 0.

Fixes piglit fbo-copyteximage.
This commit is contained in:
Eric Anholt 2010-01-04 09:39:07 -08:00
parent 63610fae4f
commit 19a26dfc47
1 changed files with 3 additions and 2 deletions

View File

@ -160,13 +160,14 @@ do_copy_texsubimage(struct intel_context *intel,
intelImage->mt->cpp,
src_pitch,
src->buffer,
src->draw_offset,
0,
src->tiling,
intelImage->mt->pitch,
dst_bo,
0,
intelImage->mt->region->tiling,
x, y, image_x + dstx, image_y + dsty,
src->draw_x + x, src->draw_y + y,
image_x + dstx, image_y + dsty,
width, height,
GL_COPY)) {
UNLOCK_HARDWARE(intel);