mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
eh, we need a buildbot... fix the compilation
This commit is contained in:
parent
429a08384c
commit
838b0d6e48
2 changed files with 4 additions and 6 deletions
|
|
@ -291,7 +291,7 @@ display_surface(struct pipe_winsys *pws,
|
|||
ximage->data = data;
|
||||
ximage->width = psurf->width;
|
||||
ximage->height = psurf->height;
|
||||
ximage->bytes_per_line = psurf->pitch * psurf->cpp;
|
||||
ximage->bytes_per_line = psurf->stride;
|
||||
|
||||
XPutImage(xsurf->Dpy, xsurf->Win, xsurf->Gc,
|
||||
ximage, 0, 0, 0, 0, psurf->width, psurf->height);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue