summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <[email protected]>2016-04-20 22:34:02 +0200
committerMarek Olšák <[email protected]>2016-04-21 12:14:50 +0200
commitd4a21a0de073d302b3afb2c8896923e7cbf93b79 (patch)
tree589f18c6acfc410f76fab7e9badd9ae0b7bb2eea
parent935ce14a445f794cdccc749738353d76d0205145 (diff)
winsys/amdgpu: fix preamble IB size
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 <[email protected]>
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_cs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
index 69902c45e65..bbd29fc836c 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
@@ -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;