virgl: move virgl_hw.h into the driver dir
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 28 Oct 2015 14:39:45 +0000 (14:39 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 30 Oct 2015 17:37:08 +0000 (17:37 +0000)
Strictly speaking virgl_hw.h should reside in the driver folder, as
it describes the hardware. Moving it allows us to nuke the following
strange dependency

winsys/vtest > driver > winsys/drm

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/virgl/Makefile.sources
src/gallium/drivers/virgl/virgl.h
src/gallium/drivers/virgl/virgl_hw.h [moved from src/gallium/winsys/virgl/drm/virgl_hw.h with 100% similarity]
src/gallium/drivers/virgl/virgl_resource.h
src/gallium/winsys/virgl/drm/Makefile.am
src/gallium/winsys/virgl/drm/Makefile.sources
src/gallium/winsys/virgl/drm/virgl_drm_winsys.h
src/gallium/winsys/virgl/vtest/Makefile.am
src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.h

index df010c0..ed309ae 100644 (file)
@@ -5,6 +5,7 @@ C_SOURCES := \
        virgl_encode.c \
        virgl_encode.h \
        virgl.h \
+       virgl_hw.h \
        virgl_protocol.h \
        virgl_public.h \
        virgl_query.c \
index ecd997b..d64576c 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "util/u_transfer.h"
 
-#include "virgl/drm/virgl_hw.h"
+#include "virgl_hw.h"
 
 #include "virgl_winsys.h"
 #include "pipe/p_screen.h"
index b80545e..2d0bd8b 100644 (file)
@@ -29,7 +29,7 @@
 #include "util/list.h"
 #include "util/u_transfer.h"
 
-#include "virgl/drm/virgl_hw.h"
+#include "virgl_hw.h"
 #define VR_MAX_TEXTURE_2D_LEVELS 15
 
 struct virgl_screen;
index 9c1db31..2473b88 100644 (file)
@@ -25,7 +25,6 @@ include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
        -I$(top_srcdir)/src/gallium/drivers \
-       -I$(top_srcdir)/src/gallium/winsys \
        $(GALLIUM_WINSYS_CFLAGS) \
        $(LIBDRM_CFLAGS)
 
index eca8eb6..0430d4a 100644 (file)
@@ -2,5 +2,4 @@ C_SOURCES := \
        virgl_drm_public.h \
        virgl_drm_winsys.c \
        virgl_drm_winsys.h \
-       virgl_hw.h \
        virtgpu_drm.h
index c9b25a0..eac1d3e 100644 (file)
@@ -36,7 +36,7 @@
 #include "pipe/p_context.h"
 #include "pipe/p_context.h"
 
-#include "virgl_hw.h"
+#include "virgl/virgl_hw.h"
 #include "virgl/virgl_winsys.h"
 
 struct virgl_drm_winsys;
index 827b353..b15a3af 100644 (file)
@@ -25,7 +25,6 @@ include $(top_srcdir)/src/gallium/Automake.inc
 
 AM_CFLAGS = \
        -I$(top_srcdir)/src/gallium/drivers \
-       -I$(top_srcdir)/src/gallium/winsys \
        $(GALLIUM_WINSYS_CFLAGS)
 
 noinst_LTLIBRARIES = libvirglvtest.la
index 2f9dc84..6d0e7b0 100644 (file)
@@ -28,7 +28,7 @@
 #include "pipe/p_defines.h"
 #include "pipe/p_state.h"
 #include "state_tracker/sw_winsys.h"
-#include "virgl/drm/virgl_hw.h"
+#include "virgl/virgl_hw.h"
 #include "virgl/virgl_winsys.h"
 #include "util/list.h"
 #include "os/os_thread.h"