mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 13:20:10 +01:00
softpipe: Use STATIC_ASSERT whenever possible.
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
parent
2f13d7543f
commit
b025c23cfe
1 changed files with 2 additions and 2 deletions
|
|
@ -99,9 +99,9 @@ sp_create_tile_cache( struct pipe_context *pipe )
|
|||
maxTexSize = 1 << (maxLevels - 1);
|
||||
assert(MAX_WIDTH >= maxTexSize);
|
||||
|
||||
assert(sizeof(union tile_address) == 4);
|
||||
STATIC_ASSERT(sizeof(union tile_address) == 4);
|
||||
|
||||
assert((TILE_SIZE << TILE_ADDR_BITS) >= MAX_WIDTH);
|
||||
STATIC_ASSERT((TILE_SIZE << TILE_ADDR_BITS) >= MAX_WIDTH);
|
||||
|
||||
tc = CALLOC_STRUCT( softpipe_tile_cache );
|
||||
if (tc) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue