mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
mesa: Add an assert for BlockDepth in _mesa_get_format_block_size()
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
9163c37349
commit
5713461ae7
1 changed files with 3 additions and 0 deletions
|
|
@ -315,6 +315,9 @@ void
|
|||
_mesa_get_format_block_size(mesa_format format, GLuint *bw, GLuint *bh)
|
||||
{
|
||||
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;
|
||||
*bh = info->BlockHeight;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue