• Ilija Hadzic's avatar
    drm/radeon/kms: cleanup benchmark code · cc340515
    Ilija Hadzic authored
    factor out repeated code into functions
    fix units in which the throughput is reported (megabytes per second
    and megabits per second make sense, others are kind of confusing)
    make report more amenable to awk and friends (e.g. whitespace is
    always the separator, unit is separated from the number, etc)
    add #defines for some hard coded constants
    
    besides "beautification" this reorg is done in preparation
    for writing more elaborate benchmarks
    Signed-off-by: default avatarIlija Hadzic <ihadzic@research.bell-labs.com>
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    cc340515
radeon_benchmark.c 4.72 KB