vtest: Add virgl_hw.h include to get access to virgl defines

Include stdint.h in virgl_hw.h, since it uses uint32_t.
Remove now duplicate structure virgl_box in vtest_renderer.c

Reviewed-by: Jakob Bornecrantz <jakob@collabora.com>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Gert Wollny 6 years ago committed by Jakob Bornecrantz
parent aa302e4b24
commit e47fad32af
  1. 2
      src/virgl_hw.h
  2. 6
      vtest/vtest_renderer.c

@ -23,6 +23,8 @@
#ifndef VIRGL_HW_H
#define VIRGL_HW_H
#include <stdint.h>
struct virgl_box {
uint32_t x, y, z;
uint32_t w, h, d;

@ -29,6 +29,7 @@
#include <fcntl.h>
#include <limits.h>
#include "virgl_hw.h"
#include "virglrenderer.h"
#include <sys/uio.h>
@ -64,11 +65,6 @@ struct vtest_renderer {
struct vtest_renderer renderer;
struct virgl_box {
uint32_t x, y, z;
uint32_t w, h, d;
};
static int
__failed_call(const char* func, const char *called, int ret)
{

Loading…
Cancel
Save