summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/virgl/vtest
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys/virgl/vtest')
-rw-r--r--src/gallium/winsys/virgl/vtest/virgl_vtest_public.h1
-rw-r--r--src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c6
-rw-r--r--src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c7
-rw-r--r--src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.h6
4 files changed, 12 insertions, 8 deletions
diff --git a/src/gallium/winsys/virgl/vtest/virgl_vtest_public.h b/src/gallium/winsys/virgl/vtest/virgl_vtest_public.h
index 72336499b44..47379d9c735 100644
--- a/src/gallium/winsys/virgl/vtest/virgl_vtest_public.h
+++ b/src/gallium/winsys/virgl/vtest/virgl_vtest_public.h
@@ -24,6 +24,7 @@
#define VIRGL_VTEST_PUBLIC_H
struct virgl_winsys;
+struct sw_winsys;
struct virgl_winsys *virgl_vtest_winsys_wrap(struct sw_winsys *sws);
diff --git a/src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c b/src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c
index 8fd6a510f70..e33475334ce 100644
--- a/src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c
+++ b/src/gallium/winsys/virgl/vtest/virgl_vtest_socket.c
@@ -20,8 +20,7 @@
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include "virgl_vtest_winsys.h"
-#include "virgl_vtest_public.h"
+
#include <sys/socket.h>
#include <errno.h>
#include <stdio.h>
@@ -34,6 +33,9 @@
/* connect to remote socket */
#define VTEST_SOCKET_NAME "/tmp/.virgl_test"
+#include "virgl_vtest_winsys.h"
+#include "virgl_vtest_public.h"
+
/* block read/write routines */
static int virgl_block_write(int fd, void *buf, int size)
{
diff --git a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c
index 28c4c62931b..6181d7c1976 100644
--- a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c
+++ b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c
@@ -21,13 +21,14 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <stdio.h>
-#include "virgl_vtest_winsys.h"
-#include "virgl_vtest_public.h"
#include "util/u_memory.h"
#include "util/u_format.h"
#include "util/u_inlines.h"
-#include "state_tracker/drm_driver.h"
#include "os/os_time.h"
+#include "state_tracker/sw_winsys.h"
+
+#include "virgl_vtest_winsys.h"
+#include "virgl_vtest_public.h"
static void *virgl_vtest_resource_map(struct virgl_winsys *vws, struct virgl_hw_res *res);
static void virgl_vtest_resource_unmap(struct virgl_winsys *vws, struct virgl_hw_res *res);
diff --git a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.h b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.h
index fd8cb7a6368..72ca2b207b1 100644
--- a/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.h
+++ b/src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.h
@@ -27,15 +27,15 @@
#include "pipe/p_compiler.h"
#include "pipe/p_defines.h"
#include "pipe/p_state.h"
-#include "state_tracker/sw_winsys.h"
-#include "virgl/virgl_hw.h"
-#include "virgl/virgl_winsys.h"
#include "util/list.h"
#include "os/os_thread.h"
+#include "virgl/virgl_winsys.h"
#include "vtest_protocol.h"
struct pipe_fence_handle;
+struct sw_winsys;
+struct sw_displaytarget;
struct virgl_vtest_winsys {
struct virgl_winsys base;