I had a later patch remove this code, but cherry-picked across it.
Signed-off-by: Dave Airlie <airlied@redhat.com>
dstRowStride = image->mt->levels[image->base.Base.Level].rowstride;
} else if (t->bo) {
/* TFP case */
- dstRowStride = get_texture_image_row_stride(rmesa, texImage->TexFormat, width, 0);
+ dstRowStride = get_texture_image_row_stride(rmesa, texImage->TexFormat, width, 0, texObj->Target);
} else {
dstRowStride = _mesa_format_row_stride(texImage->TexFormat, texImage->Width);
}