From e47fad32afe02a0acccfecbb1765efee23698b23 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Thu, 1 Nov 2018 13:44:17 +0100 Subject: [PATCH] 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 Signed-off-by: Gert Wollny Signed-off-by: Jakob Bornecrantz --- src/virgl_hw.h | 2 ++ vtest/vtest_renderer.c | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/virgl_hw.h b/src/virgl_hw.h index e682c75..851eed2 100644 --- a/src/virgl_hw.h +++ b/src/virgl_hw.h @@ -23,6 +23,8 @@ #ifndef VIRGL_HW_H #define VIRGL_HW_H +#include + struct virgl_box { uint32_t x, y, z; uint32_t w, h, d; diff --git a/vtest/vtest_renderer.c b/vtest/vtest_renderer.c index 2065f78..6015c1b 100644 --- a/vtest/vtest_renderer.c +++ b/vtest/vtest_renderer.c @@ -29,6 +29,7 @@ #include #include +#include "virgl_hw.h" #include "virglrenderer.h" #include @@ -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) {