[Intel-gfx] [PATCH i-g-t 1/8] lib/igt_dummyload: add igt_cork

Chris Wilson chris at chris-wilson.co.uk
Thu Oct 12 22:48:27 UTC 2017


Quoting Daniele Ceraolo Spurio (2017-10-12 23:27:27)
> diff --git a/lib/igt_dummyload.h b/lib/igt_dummyload.h
> index 215425f..d20a867 100644
> --- a/lib/igt_dummyload.h
> +++ b/lib/igt_dummyload.h

<insert ambition for killing off using igt for i915 specific constructs>

> @@ -29,6 +29,7 @@
>  #include <time.h>
>  
>  #include "igt_aux.h"
> +#include "igt_vgem.h"
>  
>  typedef struct igt_spin {
>         unsigned int handle;
> @@ -51,4 +52,14 @@ void igt_spin_batch_free(int fd, igt_spin_t *spin);
>  
>  void igt_terminate_spin_batches(void);
>  
> +typedef struct igt_cork {
> +       int device;
> +       uint32_t handle;
> +       uint32_t fence;
> +} igt_cork_t;

Nothing here depends on igt_vgem.h, that should just be for
igt_dummyload.c

> +
> +igt_cork_t *igt_cork_new(int fd);
> +void igt_cork_signal(igt_cork_t *cork);
> +void igt_cork_free(int fd, igt_cork_t *cork);
> +
>  #endif /* __IGT_DUMMYLOAD_H__ */


More information about the Intel-gfx mailing list