svga: fix up breakage from earlier 7.7 merge

This commit is contained in:
Brian Paul 2010-01-22 18:35:36 -07:00
parent 46c7cd665c
commit f6a49ac217
1 changed files with 2 additions and 2 deletions

View File

@ -325,8 +325,8 @@ vmw_drm_handle_from_texture(struct drm_api *drm_api,
vsrf = vmw_svga_winsys_surface(surface);
*handle = vsrf->sid;
*stride = pf_get_nblocksx(&texture->block, texture->width[0]) *
texture->block.size;
*stride = util_format_get_nblocksx(texture->format, texture->width0) *
util_format_get_blocksize(texture->format);
vmw_svga_winsys_surface_reference(&vsrf, NULL);
return TRUE;