summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2016-04-21 13:22:08 +0200
committerBas Nieuwenhuizen <[email protected]>2016-04-21 13:40:42 +0200
commit51d1551241b8c0e41da810106cf037ce91165719 (patch)
treea8966cc1e303589c161bfb4593c04aa25dbd1fe1 /src/gallium
parent4d13c7c8794082400e383ac6d76eb6ba753dcb0f (diff)
winsys/amdgpu: Silence possibly uninitialized variable warning.
Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_cs.c3
1 files changed, 3 insertions, 0 deletions
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;