diff options
author | Chia-I Wu <[email protected]> | 2010-01-22 15:51:51 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-01-22 16:44:09 +0800 |
commit | a1306f4ef6f83a86d03720641f3cdc5e13485fa6 (patch) | |
tree | bf41b5ead53a1a575289be396efdff53b96d0c03 /src/gallium/winsys/drm/swrast | |
parent | 52d7b2cedee44fbd9a0e6405b974c62898bed169 (diff) |
winsys/drm: Add swrast.
The swrast winsys always returns NULL when drm_api_create is called.
Diffstat (limited to 'src/gallium/winsys/drm/swrast')
-rw-r--r-- | src/gallium/winsys/drm/swrast/Makefile | 12 | ||||
-rw-r--r-- | src/gallium/winsys/drm/swrast/core/Makefile | 10 | ||||
-rw-r--r-- | src/gallium/winsys/drm/swrast/core/swrast_drm_api.c | 13 | ||||
-rw-r--r-- | src/gallium/winsys/drm/swrast/egl_g3d/Makefile | 12 | ||||
-rw-r--r-- | src/gallium/winsys/drm/swrast/egl_g3d/dummy.c | 1 |
5 files changed, 48 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/swrast/Makefile b/src/gallium/winsys/drm/swrast/Makefile new file mode 100644 index 00000000000..363b89584f2 --- /dev/null +++ b/src/gallium/winsys/drm/swrast/Makefile @@ -0,0 +1,12 @@ +# src/gallium/winsys/drm/swrast/Makefile +TOP = ../../../../.. +include $(TOP)/configs/current + +SUBDIRS = core $(GALLIUM_STATE_TRACKERS_DIRS) + +default install clean: + @for dir in $(SUBDIRS) ; do \ + if [ -d $$dir ] ; then \ + (cd $$dir && $(MAKE) $@) || exit 1; \ + fi \ + done diff --git a/src/gallium/winsys/drm/swrast/core/Makefile b/src/gallium/winsys/drm/swrast/core/Makefile new file mode 100644 index 00000000000..93931ae22b9 --- /dev/null +++ b/src/gallium/winsys/drm/swrast/core/Makefile @@ -0,0 +1,10 @@ +# src/gallium/winsys/drm/swrast/core/Makefile + +TOP = ../../../../../.. +include $(TOP)/configs/current + +LIBNAME = swrastdrm + +C_SOURCES = swrast_drm_api.c + +include ../../../../Makefile.template diff --git a/src/gallium/winsys/drm/swrast/core/swrast_drm_api.c b/src/gallium/winsys/drm/swrast/core/swrast_drm_api.c new file mode 100644 index 00000000000..8c9f80e2c15 --- /dev/null +++ b/src/gallium/winsys/drm/swrast/core/swrast_drm_api.c @@ -0,0 +1,13 @@ +#include "state_tracker/drm_api.h" + +static struct drm_api swrast_drm_api = +{ + .name = "swrast", +}; + +struct drm_api * +drm_api_create() +{ + (void) swrast_drm_api; + return NULL; +} diff --git a/src/gallium/winsys/drm/swrast/egl_g3d/Makefile b/src/gallium/winsys/drm/swrast/egl_g3d/Makefile new file mode 100644 index 00000000000..f0d051ea0ea --- /dev/null +++ b/src/gallium/winsys/drm/swrast/egl_g3d/Makefile @@ -0,0 +1,12 @@ +TOP = ../../../../../.. +include $(TOP)/configs/current + +EGL_DRIVER_NAME = swrast +EGL_DRIVER_SOURCES = dummy.c +EGL_DRIVER_LIBS = + +EGL_DRIVER_PIPES = \ + $(TOP)/src/gallium/winsys/drm/swrast/core/libswrastdrm.a \ + $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a + +include ../../Makefile.egl_g3d diff --git a/src/gallium/winsys/drm/swrast/egl_g3d/dummy.c b/src/gallium/winsys/drm/swrast/egl_g3d/dummy.c new file mode 100644 index 00000000000..4a1bc28b0b6 --- /dev/null +++ b/src/gallium/winsys/drm/swrast/egl_g3d/dummy.c @@ -0,0 +1 @@ +/* mklib expects at least one object file */ |