[Mesa-dev] Fwd: [PATCH] radv: trivial case stmt style fixups
Thomas Helland
thomashelland90 at gmail.com
Tue Oct 11 05:43:18 UTC 2016
This patch is:
Reviewed-by: Thomas Helland <thomashelland90 at gmail.com>
2016-10-11 2:45 GMT+02:00 Edward O'Callaghan <funfunctor at folklore1984.net>:
> Relocate a 'default:' to the end of a case stmt and fix an
> indent issue.
>
> Signed-off-by: Edward O'Callaghan <funfunctor at folklore1984.net>
> ---
> src/amd/vulkan/radv_image.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
> index 2223c89..0dc364c 100644
> --- a/src/amd/vulkan/radv_image.c
> +++ b/src/amd/vulkan/radv_image.c
> @@ -758,8 +758,6 @@ radv_image_view_init(struct radv_image_view *iview,
> const VkImageSubresourceRange *range = &pCreateInfo->subresourceRange;
> bool is_stencil = false;
> switch (image->type) {
> - default:
> - unreachable("bad VkImageType");
> case VK_IMAGE_TYPE_1D:
> case VK_IMAGE_TYPE_2D:
> 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
> <= radv_minify(image->extent.depth, range->baseMipLevel));
> break;
> + default:
> + unreachable("bad VkImageType");
> }
> iview->image = image;
> iview->bo = image->bo;
> @@ -842,7 +842,7 @@ void radv_image_set_optimal_micro_tile_mode(struct radv_device *device,
> case 16:
> image->surface.tiling_index[0] = 11;
> break;
> - default: /* 32, 64 */
> + default: /* 32, 64 */
> image->surface.tiling_index[0] = 12;
> break;
> }
> --
> 2.7.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list