diff options
author | Brian Paul <[email protected]> | 2008-06-20 14:30:21 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-06-20 14:30:21 -0600 |
commit | 78791d1065c93694a105d4c2cdaee7678a69213a (patch) | |
tree | c1803f0161faae92d044536553682666ee23460c | |
parent | 36aae1868345567975ce4fa449b547ae3e01dbc3 (diff) |
egl: added cpp assertions/sanity checks
-rw-r--r-- | src/gallium/winsys/egl_xlib/sw_winsys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/winsys/egl_xlib/sw_winsys.c b/src/gallium/winsys/egl_xlib/sw_winsys.c index fd0cb9fb12b..28cca9e581f 100644 --- a/src/gallium/winsys/egl_xlib/sw_winsys.c +++ b/src/gallium/winsys/egl_xlib/sw_winsys.c @@ -194,6 +194,8 @@ surface_alloc_storage(struct pipe_winsys *winsys, surf->pitch = round_up(width, alignment / surf->cpp); 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, |