winsys/amdgpu: fix preamble IB size
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Wed, 20 Apr 2016 20:34:02 +0000 (22:34 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 21 Apr 2016 10:14:50 +0000 (12:14 +0200)
The missing break caused the IB size to be overwritten with
the size of IB_CONST.

This was introduced in: 7201230582e060aa2eb79c825d3188b437ef7bb8

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c

index 69902c45e658f5a4e73e2926f3f43ad5a74de1cd..bbd29fc836c4b726f890cfdeebf22b768cc72abe 100644 (file)
@@ -211,6 +211,7 @@ static bool amdgpu_get_new_ib(struct radeon_winsys *ws, struct amdgpu_ib *ib,
    case IB_CONST_PREAMBLE:
       buffer_size = 4 * 1024 * 4;
       ib_size = 1024 * 4;
+      break;
    case IB_CONST:
       buffer_size = 512 * 1024 * 4;
       ib_size = 128 * 1024 * 4;