From: Dave Airlie Date: Fri, 11 Nov 2011 15:55:52 +0000 (+0000) Subject: radeon: fix build. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f98ac473bddb50e997dcfe61ae21ec0f641e514;p=mesa.git radeon: fix build. I had a later patch remove this code, but cherry-picked across it. Signed-off-by: Dave Airlie --- diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c index d5fb954b65f..6d32189d0b2 100644 --- a/src/mesa/drivers/dri/radeon/radeon_texture.c +++ b/src/mesa/drivers/dri/radeon/radeon_texture.c @@ -682,7 +682,7 @@ static void radeon_store_teximage(struct gl_context* ctx, int dims, 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); }