drm/radeon/benchmark: common modes sweep ignores 640x480@32
authorChen Jie <chenj@lemote.com>
Wed, 7 Dec 2011 02:18:18 +0000 (10:18 +0800)
committerDave Airlie <airlied@redhat.com>
Thu, 5 Jan 2012 14:40:49 +0000 (14:40 +0000)
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>
drivers/gpu/drm/radeon/radeon_benchmark.c

index 4f749a69c9c57d3e108d73694db86dcead71d9d4..815f2341ab9491013257987081c4214917f9d0af 100644 (file)
@@ -229,21 +229,21 @@ void radeon_benchmark(struct radeon_device *rdev, int test_number)
                break;
        case 6:
                /* GTT to VRAM, buffer size sweep, common modes */
-               for (i = 1; i < RADEON_BENCHMARK_COMMON_MODES_N; i++)
+               for (i = 0; i < RADEON_BENCHMARK_COMMON_MODES_N; i++)
                        radeon_benchmark_move(rdev, common_modes[i],
                                              RADEON_GEM_DOMAIN_GTT,
                                              RADEON_GEM_DOMAIN_VRAM);
                break;
        case 7:
                /* VRAM to GTT, buffer size sweep, common modes */
-               for (i = 1; i < RADEON_BENCHMARK_COMMON_MODES_N; i++)
+               for (i = 0; i < RADEON_BENCHMARK_COMMON_MODES_N; i++)
                        radeon_benchmark_move(rdev, common_modes[i],
                                              RADEON_GEM_DOMAIN_VRAM,
                                              RADEON_GEM_DOMAIN_GTT);
                break;
        case 8:
                /* VRAM to VRAM, buffer size sweep, common modes */
-               for (i = 1; i < RADEON_BENCHMARK_COMMON_MODES_N; i++)
+               for (i = 0; i < RADEON_BENCHMARK_COMMON_MODES_N; i++)
                        radeon_benchmark_move(rdev, common_modes[i],
                                              RADEON_GEM_DOMAIN_VRAM,
                                              RADEON_GEM_DOMAIN_VRAM);