radeon: fix build.
authorDave Airlie <airlied@redhat.com>
Fri, 11 Nov 2011 15:55:52 +0000 (15:55 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 11 Nov 2011 15:55:52 +0000 (15:55 +0000)
I had a later patch remove this code, but cherry-picked across it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/radeon/radeon_texture.c

index d5fb954b65f555c39a6608994ee6e93b0956c3ed..6d32189d0b2a6e5b2e5d7d8bf0868b6a41b744bb 100644 (file)
@@ -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);
        }