forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
28eebb703e
commit
d7d0a75c44
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user