OSDN Git Service

amdgpu: fix the number of IB size enums
authorJammy Zhou <Jammy.Zhou@amd.com>
Mon, 18 May 2015 11:14:56 +0000 (19:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Aug 2015 17:47:49 +0000 (13:47 -0400)
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
amdgpu/amdgpu.h

index c48af92..e99bada 100644 (file)
@@ -104,15 +104,15 @@ enum amdgpu_bo_handle_type {
  * \sa amdgpu_cs_alloc_ib()
  */
 enum amdgpu_cs_ib_size {
-       amdgpu_cs_ib_size_4K    = 1,
-       amdgpu_cs_ib_size_16K   = 2,
-       amdgpu_cs_ib_size_32K   = 3,
-       amdgpu_cs_ib_size_64K   = 4,
-       amdgpu_cs_ib_size_128K  = 5
+       amdgpu_cs_ib_size_4K    = 0,
+       amdgpu_cs_ib_size_16K   = 1,
+       amdgpu_cs_ib_size_32K   = 2,
+       amdgpu_cs_ib_size_64K   = 3,
+       amdgpu_cs_ib_size_128K  = 4
 };
 
 /** The number of different IB sizes */
-#define AMDGPU_CS_IB_SIZE_NUM 6
+#define AMDGPU_CS_IB_SIZE_NUM 5
 
 
 /*--------------------------------------------------------------------------*/