[Mesa-dev] [PATCH 1/2] winsys/amdgpu: Silence possibly uninitialized variable warning.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Thu Apr 21 11:28:32 UTC 2016
Signed-off-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
---
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
index bbd29fc..69fb9bb 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;
--
2.8.0
More information about the mesa-dev
mailing list