diff options
author | Jose Fonseca <[email protected]> | 2016-04-15 15:02:02 +0100 |
---|---|---|
committer | Jose Fonseca <[email protected]> | 2016-04-19 11:28:16 +0100 |
commit | f6621cd3be16d541f921b1b0a8cd6bc836826704 (patch) | |
tree | 78424911c1c6d24db94ed29a6ca706491b51a57f /src/gallium/tests/unit | |
parent | 121a0cedc80c5541d51599383486ba9a7397c6ce (diff) |
gallium/tests: Update UTIL_FORMAT_MAX_* defines.
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/tests/unit')
-rw-r--r-- | src/gallium/tests/unit/u_format_test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/tests/unit/u_format_test.c b/src/gallium/tests/unit/u_format_test.c index 2d89e7ed45b..3145d13616c 100644 --- a/src/gallium/tests/unit/u_format_test.c +++ b/src/gallium/tests/unit/u_format_test.c @@ -693,6 +693,10 @@ test_all(void) continue; } + assert(format_desc->block.bits <= UTIL_FORMAT_MAX_PACKED_BYTES * 8); + assert(format_desc->block.height <= UTIL_FORMAT_MAX_UNPACKED_HEIGHT); + assert(format_desc->block.width <= UTIL_FORMAT_MAX_UNPACKED_WIDTH); + if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC && !util_format_s3tc_enabled) { continue; |