Commit d7d0a75c authored by Chen Jie's avatar Chen Jie Committed by Dave Airlie

drm/radeon/benchmark: common modes sweep ignores 640x480@32

Sweep common_modes array should start with index 0.
Signed-off-by: default avatarChen Jie <chenj@lemote.com>
Reviewed-by: default avatarIlija Hadzic <ihadzic@research.bell-labs.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 28eebb70
...@@ -229,21 +229,21 @@ void radeon_benchmark(struct radeon_device *rdev, int test_number) ...@@ -229,21 +229,21 @@ void radeon_benchmark(struct radeon_device *rdev, int test_number)
break; break;
case 6: case 6:
/* GTT to VRAM, buffer size sweep, common modes */ /* 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_benchmark_move(rdev, common_modes[i],
RADEON_GEM_DOMAIN_GTT, RADEON_GEM_DOMAIN_GTT,
RADEON_GEM_DOMAIN_VRAM); RADEON_GEM_DOMAIN_VRAM);
break; break;
case 7: case 7:
/* VRAM to GTT, buffer size sweep, common modes */ /* 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_benchmark_move(rdev, common_modes[i],
RADEON_GEM_DOMAIN_VRAM, RADEON_GEM_DOMAIN_VRAM,
RADEON_GEM_DOMAIN_GTT); RADEON_GEM_DOMAIN_GTT);
break; break;
case 8: case 8:
/* VRAM to VRAM, buffer size sweep, common modes */ /* 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_benchmark_move(rdev, common_modes[i],
RADEON_GEM_DOMAIN_VRAM, RADEON_GEM_DOMAIN_VRAM,
RADEON_GEM_DOMAIN_VRAM); RADEON_GEM_DOMAIN_VRAM);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment