diff options
author | Eric Anholt <eric@anholt.net> | 2017-06-07 13:31:51 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2017-11-21 09:59:27 -0800 |
commit | 02a0a9ce9720337cf55b69531cf081d36118ffca (patch) | |
tree | 2205fde7105e0b523728f9ec710c73c13615fcba /lib/igt_vc4.h | |
parent | aa97faa3828488478d97c1fce51650591681bdc9 (diff) |
igt/vc4_tiling: Test vc4's new set/get_tiling ioctls.
This just checks that the appropriate errors get thrown, and that the
modifier can be set/get successfully, and that the modifier doesn't
leak to other BO allocations. Testing of scanout will be done with
the writeback support that Boris is building. The modifier has no
effect on V3D rendering, so no need to test that.
v2: Add to the meson build.
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'lib/igt_vc4.h')
-rw-r--r-- | lib/igt_vc4.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_vc4.h b/lib/igt_vc4.h index e9252461..d1740b93 100644 --- a/lib/igt_vc4.h +++ b/lib/igt_vc4.h @@ -28,4 +28,7 @@ uint32_t igt_vc4_get_cleared_bo(int fd, size_t size, uint32_t clearval); int igt_vc4_create_bo(int fd, size_t size); void *igt_vc4_mmap_bo(int fd, uint32_t handle, uint32_t size, unsigned prot); +void igt_vc4_set_tiling(int fd, uint32_t handle, uint64_t modifier); +uint64_t igt_vc4_get_tiling(int fd, uint32_t handle); + #endif /* IGT_VC4_H */ |