summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-22 18:35:36 -0700
committerBrian Paul <[email protected]>2010-01-22 18:35:36 -0700
commitf6a49ac21721353948b03cf3ca3b5aa5c87e59e6 (patch)
tree2361fc27445072dc7cb6112a9422c03fd443bdbe /src/gallium/winsys
parent46c7cd665c9bc93e7254771b16b010fb10ce3707 (diff)
svga: fix up breakage from earlier 7.7 merge
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c b/src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c
index 8be9d74bde3..d9abde30793 100644
--- a/src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c
+++ b/src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c
@@ -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;