aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorChen Jie <chenj@lemote.com>2011-12-06 21:18:18 -0500
committerDave Airlie <airlied@redhat.com>2012-01-05 09:40:49 -0500
commitd7d0a75c4486f0e493af61d769aa49b94ae4c8bd (patch)
tree65eac3883fa3c96beee7637d283067343499729e /drivers/gpu
parent28eebb703e28bc455ba704adb1026f76649b768c (diff)
drm/radeon/benchmark: common modes sweep ignores 640x480@32
Sweep common_modes array should start with index 0. Signed-off-by: Chen Jie <chenj@lemote.com> Reviewed-by: Ilija Hadzic <ihadzic@research.bell-labs.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/radeon/radeon_benchmark.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_benchmark.c b/drivers/gpu/drm/radeon/radeon_benchmark.c
index 4f749a69c9c5..815f2341ab94 100644
--- a/drivers/gpu/drm/radeon/radeon_benchmark.c
+++ b/drivers/gpu/drm/radeon/radeon_benchmark.c
@@ -229,21 +229,21 @@ void radeon_benchmark(struct radeon_device *rdev, int test_number)
229 break; 229 break;
230 case 6: 230 case 6:
231 /* GTT to VRAM, buffer size sweep, common modes */ 231 /* GTT to VRAM, buffer size sweep, common modes */
232 for (i = 1; i < RADEON_BENCHMARK_COMMON_MODES_N; i++) 232 for (i = 0; i < RADEON_BENCHMARK_COMMON_MODES_N; i++)
233 radeon_benchmark_move(rdev, common_modes[i], 233 radeon_benchmark_move(rdev, common_modes[i],
234 RADEON_GEM_DOMAIN_GTT, 234 RADEON_GEM_DOMAIN_GTT,
235 RADEON_GEM_DOMAIN_VRAM); 235 RADEON_GEM_DOMAIN_VRAM);
236 break; 236 break;
237 case 7: 237 case 7:
238 /* VRAM to GTT, buffer size sweep, common modes */ 238 /* VRAM to GTT, buffer size sweep, common modes */
239 for (i = 1; i < RADEON_BENCHMARK_COMMON_MODES_N; i++) 239 for (i = 0; i < RADEON_BENCHMARK_COMMON_MODES_N; i++)
240 radeon_benchmark_move(rdev, common_modes[i], 240 radeon_benchmark_move(rdev, common_modes[i],
241 RADEON_GEM_DOMAIN_VRAM, 241 RADEON_GEM_DOMAIN_VRAM,
242 RADEON_GEM_DOMAIN_GTT); 242 RADEON_GEM_DOMAIN_GTT);
243 break; 243 break;
244 case 8: 244 case 8:
245 /* VRAM to VRAM, buffer size sweep, common modes */ 245 /* VRAM to VRAM, buffer size sweep, common modes */
246 for (i = 1; i < RADEON_BENCHMARK_COMMON_MODES_N; i++) 246 for (i = 0; i < RADEON_BENCHMARK_COMMON_MODES_N; i++)
247 radeon_benchmark_move(rdev, common_modes[i], 247 radeon_benchmark_move(rdev, common_modes[i],
248 RADEON_GEM_DOMAIN_VRAM, 248 RADEON_GEM_DOMAIN_VRAM,
249 RADEON_GEM_DOMAIN_VRAM); 249 RADEON_GEM_DOMAIN_VRAM);