OSDN Git Service

drm: add tests/amdgpu (v3)
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 20 Apr 2015 16:15:23 +0000 (12:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Aug 2015 17:47:48 +0000 (13:47 -0400)
commit3c5fe78801dbadc82cc25f4a63a983fea15d938b
treee97fd50eab3dedd713e6aaf8454984072a933620
parent09361395363805b5892d48d7bc10cf717e4d2927
drm: add tests/amdgpu (v3)

This adds some basic unit tests for the new amdgpu driver.

v2: use common util_math.h
v3: implement suggestions from Emil
    replace malloc/memset with calloc
    make header guards all caps
    use posix_memalign rather than mem_align
    replace malloc with calloc for pm4 allocations
    make CU_SuiteInfo static
    fix Makefile.am
    fix fd numbering
    use drmGetVersion/drmFreeVersion rather than open coding it
    close fd, clean up CU registry on error

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
configure.ac
tests/Makefile.am
tests/amdgpu/Makefile.am [new file with mode: 0644]
tests/amdgpu/amdgpu_test.c [new file with mode: 0644]
tests/amdgpu/amdgpu_test.h [new file with mode: 0644]
tests/amdgpu/basic_tests.c [new file with mode: 0644]
tests/amdgpu/bo_tests.c [new file with mode: 0644]
tests/amdgpu/cs_tests.c [new file with mode: 0644]
tests/amdgpu/uvd_messages.h [new file with mode: 0644]
tests/kmstest/main.c