]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/selftests: Add tests for drm_internal_framebuffer_create
authorAlexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Thu, 1 Nov 2018 15:11:33 +0000 (15:11 +0000)
committerAlexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Fri, 2 Nov 2018 09:58:30 +0000 (09:58 +0000)
commit6ff3d9ffdcbbe24e8185b254d92d6db44ad55506
tree8e4e4c268336e22674cb76b28d505f4b2bb48195
parent9aefed1f74989eebb430fd0b0bbc3f87da33d0ec
drm/selftests: Add tests for drm_internal_framebuffer_create

Add tests that verify that drm_internal_framebuffer_create creates
buffers correctly by creating a dummy drm_device with a mock function
for the fb_create callback.

To decide if a buffer has been created or not it just checks if
fb_create callback has been called for the particular drm_mode_fb_cmd2
that's being tested.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181101151051.1509-8-alexandru-cosmin.gheorghe@arm.com
drivers/gpu/drm/selftests/Makefile
drivers/gpu/drm/selftests/drm_modeset_selftests.h
drivers/gpu/drm/selftests/test-drm_framebuffer.c [new file with mode: 0644]
drivers/gpu/drm/selftests/test-drm_modeset_common.h