intel: Respect texture tiling when doing a PBO blit teximage upload.
authorEric Anholt <eric@anholt.net>
Sat, 30 Jan 2010 23:11:09 +0000 (15:11 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 30 Jan 2010 23:12:23 +0000 (15:12 -0800)
Bug #26008.  Fixes piglit pbo-teximage-tiling-2.

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

index f5d0dabebb64cacf81265c9112a258558786c911..a56e085b90fd37fe5133a6ed7db59296750f5b45 100644 (file)
@@ -240,7 +240,8 @@ try_pbo_upload(struct intel_context *intel,
       if (!intelEmitCopyBlit(intel,
                             intelImage->mt->cpp,
                             src_stride, src_buffer, src_offset, GL_FALSE,
-                            dst_stride, dst_buffer, 0, GL_FALSE,
+                            dst_stride, dst_buffer, 0,
+                            intelImage->mt->region->tiling,
                             0, 0, dst_x, dst_y, width, height,
                             GL_COPY)) {
         return GL_FALSE;