Commit 5713461a authored by Anuj Phogat's avatar Anuj Phogat
Browse files

mesa: Add an assert for BlockDepth in _mesa_get_format_block_size()


Signed-off-by: Anuj Phogat's avatarAnuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
parent 9163c373
...@@ -315,6 +315,9 @@ void ...@@ -315,6 +315,9 @@ void
_mesa_get_format_block_size(mesa_format format, GLuint *bw, GLuint *bh) _mesa_get_format_block_size(mesa_format format, GLuint *bw, GLuint *bh)
{ {
const struct gl_format_info *info = _mesa_get_format_info(format); const struct gl_format_info *info = _mesa_get_format_info(format);
/* Use _mesa_get_format_block_size_3d() for 3D blocks. */
assert(info->BlockDepth == 1);
*bw = info->BlockWidth; *bw = info->BlockWidth;
*bh = info->BlockHeight; *bh = info->BlockHeight;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment