VC4

VC4 — VC4 support library

Functions

Includes

#include <igt.h>

Description

This library provides various auxiliary helper functions for writing VC4 tests.

Functions

igt_vc4_get_cleared_bo ()

uint32_t
igt_vc4_get_cleared_bo (int fd,
                        size_t size,
                        uint32_t clearval);

This helper returns a new BO with the given size, which has just been cleared using the render engine.

Parameters

fd

device file descriptor

 

size

size of the BO in bytes

 

clearval

u32 value that the buffer should be completely cleared with

 

igt_vc4_create_bo ()

int
igt_vc4_create_bo (int fd,
                   size_t size);

igt_vc4_mmap_bo ()

void *
igt_vc4_mmap_bo (int fd,
                 uint32_t handle,
                 uint32_t size,
                 unsigned  prot);

igt_vc4_get_param ()

int
igt_vc4_get_param (int fd,
                   uint32_t param,
                   uint64_t *val);

igt_vc4_purgeable_bo ()

bool
igt_vc4_purgeable_bo (int fd,
                      int handle,
                      bool purgeable);

igt_vc4_set_tiling ()

void
igt_vc4_set_tiling (int fd,
                    uint32_t handle,
                    uint64_t modifier);

igt_vc4_get_tiling ()

uint64_t
igt_vc4_get_tiling (int fd,
                    uint32_t handle);

igt_vc4_fb_t_tiled_convert ()

unsigned int
igt_vc4_fb_t_tiled_convert (struct igt_fb *dst,
                            struct igt_fb *src);

igt_vc4_t_tiled_offset ()

size_t
igt_vc4_t_tiled_offset (size_t stride,
                        size_t height,
                        size_t bpp,
                        size_t x,
                        size_t y);

vc4_fb_sand_tiled_convert ()

unsigned int
vc4_fb_sand_tiled_convert (struct igt_fb *dst,
                           struct igt_fb *src,
                           uint64_t modifier);

vc4_sand_tiled_offset ()

size_t
vc4_sand_tiled_offset (size_t column_width,
                       size_t column_size,
                       size_t x,
                       size_t y,
                       size_t bpp);

Types and Values