projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
838b0d6
)
egl: helps if the stride is right
author
Zack Rusin
<zack@tungstengraphics.com>
Fri, 27 Jun 2008 20:47:22 +0000
(16:47 -0400)
committer
Zack Rusin
<zack@tungstengraphics.com>
Fri, 27 Jun 2008 20:47:22 +0000
(16:47 -0400)
src/gallium/winsys/egl_xlib/sw_winsys.c
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/egl_xlib/sw_winsys.c
b/src/gallium/winsys/egl_xlib/sw_winsys.c
index 6956fb5b6f51252eb87be3a3dd0244e8dfdb445a..f4199e6f89121d7af24ac8fcecd1ac2e533bdcf3 100644
(file)
--- a/
src/gallium/winsys/egl_xlib/sw_winsys.c
+++ b/
src/gallium/winsys/egl_xlib/sw_winsys.c
@@
-190,7
+190,9
@@
surface_alloc_storage(struct pipe_winsys *winsys,
surf->width = width;
surf->height = height;
surf->format = format;
- pf_get_block(format, &surf->block);
+ pf_get_block(surf->format, &surf->block);
+ surf->nblocksx = pf_get_nblocksx(&surf->block, width);
+ surf->nblocksy = pf_get_nblocksy(&surf->block, height);
surf->stride = round_up(surf->nblocksx * surf->block.size, alignment);
surf->usage = flags;