summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-07-05 03:19:56 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-07-05 03:51:25 +0900
commitc23b64f1646ac5349c395ede47707906ddff7b4c (patch)
tree63319b29c4677b35bb35efbaa2bec53a4b216197 /src/gallium/drivers
parente6c24539c3d482271a8c1bcba697b08e24344e05 (diff)
softpipe: Compute block size for display targets.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/softpipe/sp_texture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c
index 20ad336b4f..f775591352 100644
--- a/src/gallium/drivers/softpipe/sp_texture.c
+++ b/src/gallium/drivers/softpipe/sp_texture.c
@@ -122,8 +122,10 @@ softpipe_displaytarget_layout(struct pipe_screen *screen,
/* Now extract the goodies:
*/
- spt->buffer = surf.buffer;
+ spt->base.nblocksx[0] = pf_get_nblocksx(&spt->base.block, spt->base.width[0]);
+ spt->base.nblocksy[0] = pf_get_nblocksy(&spt->base.block, spt->base.height[0]);
spt->stride[0] = surf.stride;
+ spt->buffer = surf.buffer;
return spt->buffer != NULL;
}