diff options
author | Zack Rusin <[email protected]> | 2008-06-27 15:56:09 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2008-06-27 15:56:09 -0400 |
commit | 838b0d6e480c9ae90abb067c1ba4aee413df6fd9 (patch) | |
tree | 341efec9852114287be744b25770ada0b08c9bbf /src/gallium/winsys/egl_xlib/sw_winsys.c | |
parent | 429a08384c2ea66d446e46beb28e33ee3b764d52 (diff) |
eh, we need a buildbot... fix the compilation
Diffstat (limited to 'src/gallium/winsys/egl_xlib/sw_winsys.c')
-rw-r--r-- | src/gallium/winsys/egl_xlib/sw_winsys.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gallium/winsys/egl_xlib/sw_winsys.c b/src/gallium/winsys/egl_xlib/sw_winsys.c index 28cca9e581f..6956fb5b6f5 100644 --- a/src/gallium/winsys/egl_xlib/sw_winsys.c +++ b/src/gallium/winsys/egl_xlib/sw_winsys.c @@ -190,16 +190,14 @@ surface_alloc_storage(struct pipe_winsys *winsys, surf->width = width; surf->height = height; surf->format = format; - surf->cpp = pf_get_size(format); - surf->pitch = round_up(width, alignment / surf->cpp); + pf_get_block(format, &surf->block); + surf->stride = round_up(surf->nblocksx * surf->block.size, alignment); surf->usage = flags; - assert(surf->cpp >= 1); - assert(surf->cpp <= 16); assert(!surf->buffer); surf->buffer = winsys->buffer_create(winsys, alignment, PIPE_BUFFER_USAGE_PIXEL, - surf->pitch * surf->cpp * height); + surf->stride * height); if(!surf->buffer) return -1; |