summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-01-30 15:11:09 -0800
committerEric Anholt <[email protected]>2010-01-30 15:12:23 -0800
commit22bbc979944084ddffbb2c42a8178e172beaece0 (patch)
tree6d3e5212dc75263712c98aa2fc0a2594147170f7
parenta794c660d30b04ed50482cf2f26e0a7f9687319e (diff)
intel: Respect texture tiling when doing a PBO blit teximage upload.
Bug #26008. Fixes piglit pbo-teximage-tiling-2.
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex_image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c
index f5d0dabebb6..a56e085b90f 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_image.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_image.c
@@ -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;