mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 21:02:59 +00:00
igt: Add a helper function for creating VC4 BOs.
v2: Use do_ioctl(). Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
+2
-7
@@ -22,6 +22,7 @@
|
||||
*/
|
||||
|
||||
#include "igt.h"
|
||||
#include "igt_vc4.h"
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
@@ -39,14 +40,8 @@ igt_main
|
||||
int bo_handle;
|
||||
|
||||
igt_fixture {
|
||||
struct drm_vc4_create_bo create = {
|
||||
.size = 4096,
|
||||
};
|
||||
|
||||
fd = drm_open_driver(DRIVER_VC4);
|
||||
|
||||
do_ioctl(fd, DRM_IOCTL_VC4_CREATE_BO, &create);
|
||||
bo_handle = create.handle;
|
||||
bo_handle = igt_vc4_create_bo(fd, 4096);
|
||||
}
|
||||
|
||||
igt_subtest("bad-bo") {
|
||||
|
||||
Reference in New Issue
Block a user