mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
egl: added cpp assertions/sanity checks
This commit is contained in:
parent
36aae18683
commit
78791d1065
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue