projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46c7cd6
)
svga: fix up breakage from earlier 7.7 merge
author
Brian Paul
<brianp@vmware.com>
Sat, 23 Jan 2010 01:35:36 +0000
(18:35 -0700)
committer
Brian Paul
<brianp@vmware.com>
Sat, 23 Jan 2010 01:35:36 +0000
(18:35 -0700)
src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c
patch
|
blob
|
history
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 8be9d74bde38de321c39bba044c4ad14999cd344..d9abde307939bf650478672fb767fc22bd806ac4 100644
(file)
--- 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;