winsys/amdgpu: Silence possibly uninitialized variable warning.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 21 Apr 2016 11:22:08 +0000 (13:22 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 21 Apr 2016 11:40:42 +0000 (13:40 +0200)
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c

index bbd29fc836c4b726f890cfdeebf22b768cc72abe..69fb9bb4f9d7d70bc16fcaa14ad37e58eb852c3f 100644 (file)
@@ -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;