summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-04-19 11:52:36 -0700
committerEric Anholt <[email protected]>2013-04-30 10:40:42 -0700
commit0de08fb5947676da5502ed7d8ad24021a8081076 (patch)
tree43c7d25ad402b45bbf1370263ee604859c045250 /src/mesa/drivers/dri/radeon
parenta6a4b70e2dc11132fbb29ef5e47c26e680c4e885 (diff)
radeon: Add missing swrast field initialization.
This is the equivalent of intel's 80513ec8b4c812b9c6249cc5824337a5f04ab34c. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/radeon')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_texture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c
index 0bd2c245a19..b1bc0fc9dd9 100644
--- a/src/mesa/drivers/dri/radeon/radeon_texture.c
+++ b/src/mesa/drivers/dri/radeon/radeon_texture.c
@@ -120,6 +120,9 @@ radeonAllocTextureImageBuffer(struct gl_context *ctx,
}
assert(!image->base.ImageOffsets);
image->base.ImageOffsets = malloc(slices * sizeof(GLuint));
+
+ _swrast_init_texture_image(timage);
+
teximage_assign_miptree(rmesa, texobj, timage);
return GL_TRUE;