From: Bas Nieuwenhuizen Date: Thu, 21 Apr 2016 11:22:08 +0000 (+0200) Subject: winsys/amdgpu: Silence possibly uninitialized variable warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51d1551241b8c0e41da810106cf037ce91165719;p=mesa.git winsys/amdgpu: Silence possibly uninitialized variable warning. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Marek Olšák --- diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c index bbd29fc836c..69fb9bb4f9d 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c @@ -219,6 +219,9 @@ static bool amdgpu_get_new_ib(struct radeon_winsys *ws, struct amdgpu_ib *ib, case IB_MAIN: buffer_size = 128 * 1024 * 4; ib_size = 20 * 1024 * 4; + break; + default: + unreachable("unhandled IB type"); } ib->base.cdw = 0;