mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
vk/image: Group some assertions closer together
In anv_image_create(), group together the assertions on VkImageCreateInfo.
This commit is contained in:
parent
0349e8d607
commit
5d7103ee15
1 changed files with 2 additions and 4 deletions
|
|
@ -132,6 +132,8 @@ VkResult anv_image_create(
|
|||
anv_assert(pCreateInfo->mipLevels == 1);
|
||||
anv_assert(pCreateInfo->arraySize == 1);
|
||||
anv_assert(pCreateInfo->samples == 1);
|
||||
anv_assert(pCreateInfo->extent.width > 0);
|
||||
anv_assert(pCreateInfo->extent.height > 0);
|
||||
anv_assert(pCreateInfo->extent.depth == 1);
|
||||
|
||||
image->bo = NULL;
|
||||
|
|
@ -148,10 +150,6 @@ VkResult anv_image_create(
|
|||
const struct anv_surf_type_limits *limits =
|
||||
&anv_surf_type_limits[image->surf_type];
|
||||
|
||||
assert(image->extent.width > 0);
|
||||
assert(image->extent.height > 0);
|
||||
assert(image->extent.depth > 0);
|
||||
|
||||
const struct anv_tile_info *tile_info =
|
||||
&anv_tile_info_table[image->tile_mode];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue