radv: trivial case stmt style fixups
Relocate a 'default:' to the end of a case stmt and fix an indent issue. Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
This commit is contained in:
parent
fd27d5fd92
commit
cfbf956dfd
|
@ -758,8 +758,6 @@ radv_image_view_init(struct radv_image_view *iview,
|
||||||
const VkImageSubresourceRange *range = &pCreateInfo->subresourceRange;
|
const VkImageSubresourceRange *range = &pCreateInfo->subresourceRange;
|
||||||
bool is_stencil = false;
|
bool is_stencil = false;
|
||||||
switch (image->type) {
|
switch (image->type) {
|
||||||
default:
|
|
||||||
unreachable("bad VkImageType");
|
|
||||||
case VK_IMAGE_TYPE_1D:
|
case VK_IMAGE_TYPE_1D:
|
||||||
case VK_IMAGE_TYPE_2D:
|
case VK_IMAGE_TYPE_2D:
|
||||||
assert(range->baseArrayLayer + radv_get_layerCount(image, range) - 1 <= image->array_size);
|
assert(range->baseArrayLayer + radv_get_layerCount(image, range) - 1 <= image->array_size);
|
||||||
|
@ -768,6 +766,8 @@ radv_image_view_init(struct radv_image_view *iview,
|
||||||
assert(range->baseArrayLayer + radv_get_layerCount(image, range) - 1
|
assert(range->baseArrayLayer + radv_get_layerCount(image, range) - 1
|
||||||
<= radv_minify(image->extent.depth, range->baseMipLevel));
|
<= radv_minify(image->extent.depth, range->baseMipLevel));
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
unreachable("bad VkImageType");
|
||||||
}
|
}
|
||||||
iview->image = image;
|
iview->image = image;
|
||||||
iview->bo = image->bo;
|
iview->bo = image->bo;
|
||||||
|
|
Loading…
Reference in New Issue