diff options
author | Chia-I Wu <[email protected]> | 2010-09-19 16:54:39 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-09-19 17:19:03 +0800 |
commit | e7424d72405a1cb1fb5ac625b340043aaa9f88be (patch) | |
tree | a0aa7f6a401d1697c5188d7a6ae1b6c69c08f6a6 /src/gallium/state_trackers | |
parent | c7c2e7d0ce97b1586219be2ba742758f23f5c7aa (diff) |
st/egl: Rename kms backend to drm.
The main use of the backend is to support EGL_MESA_drm_display. drm
should be a better name.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/egl/Makefile | 20 | ||||
-rw-r--r-- | src/gallium/state_trackers/egl/common/egl_g3d.c | 4 | ||||
-rw-r--r-- | src/gallium/state_trackers/egl/common/native.h | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/egl/drm/modeset.c (renamed from src/gallium/state_trackers/egl/kms/modeset.c) | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/egl/drm/native_drm.c (renamed from src/gallium/state_trackers/egl/kms/native_kms.c) | 10 | ||||
-rw-r--r-- | src/gallium/state_trackers/egl/drm/native_drm.h (renamed from src/gallium/state_trackers/egl/kms/native_kms.h) | 0 |
6 files changed, 19 insertions, 19 deletions
diff --git a/src/gallium/state_trackers/egl/Makefile b/src/gallium/state_trackers/egl/Makefile index 4199d7c6baa..8dbfc5b8e56 100644 --- a/src/gallium/state_trackers/egl/Makefile +++ b/src/gallium/state_trackers/egl/Makefile @@ -24,9 +24,9 @@ x11_SOURCES = $(wildcard x11/*.c) \ x11_OBJECTS = $(x11_SOURCES:.c=.o) -kms_INCLUDES = -I$(TOP)/src/gallium/winsys $(shell pkg-config --cflags-only-I libdrm) -kms_SOURCES = $(wildcard kms/*.c) -kms_OBJECTS = $(kms_SOURCES:.c=.o) +drm_INCLUDES = -I$(TOP)/src/gallium/winsys $(shell pkg-config --cflags-only-I libdrm) +drm_SOURCES = $(wildcard drm/*.c) +drm_OBJECTS = $(drm_SOURCES:.c=.o) fbdev_INCLUDES = -I$(TOP)/src/gallium/winsys/sw @@ -34,8 +34,8 @@ fbdev_SOURCES = $(wildcard fbdev/*.c) fbdev_OBJECTS = $(fbdev_SOURCES:.c=.o) -ALL_INCLUDES = $(common_INCLUDES) $(x11_INCLUDES) $(kms_INCLUDES) $(fbdev_INCLUDES) -ALL_SOURCES = $(common_SOURCES) $(x11_SOURCES) $(kms_SOURCES) $(fbdev_SOURCES) +ALL_INCLUDES = $(common_INCLUDES) $(x11_INCLUDES) $(drm_INCLUDES) $(fbdev_INCLUDES) +ALL_SOURCES = $(common_SOURCES) $(x11_SOURCES) $(drm_SOURCES) $(fbdev_SOURCES) EGL_OBJECTS = $(common_OBJECTS) EGL_CPPFLAGS = $(common_INCLUDES) @@ -45,9 +45,9 @@ ifneq ($(findstring x11, $(EGL_PLATFORMS)),) EGL_OBJECTS += $(x11_OBJECTS) EGL_CPPFLAGS += -DHAVE_X11_BACKEND endif -ifneq ($(findstring kms, $(EGL_PLATFORMS)),) -EGL_OBJECTS += $(kms_OBJECTS) -EGL_CPPFLAGS += -DHAVE_KMS_BACKEND +ifneq ($(findstring drm, $(EGL_PLATFORMS)),) +EGL_OBJECTS += $(drm_OBJECTS) +EGL_CPPFLAGS += -DHAVE_DRM_BACKEND endif ifneq ($(findstring fbdev, $(EGL_PLATFORMS)),) EGL_OBJECTS += $(fbdev_OBJECTS) @@ -87,8 +87,8 @@ $(common_OBJECTS): %.o: %.c $(x11_OBJECTS): %.o: %.c $(call egl-cc,x11) -$(kms_OBJECTS): %.o: %.c - $(call egl-cc,kms) +$(drm_OBJECTS): %.o: %.c + $(call egl-cc,drm) $(fbdev_OBJECTS): %.o: %.c $(call egl-cc,fbdev) diff --git a/src/gallium/state_trackers/egl/common/egl_g3d.c b/src/gallium/state_trackers/egl/common/egl_g3d.c index 33a838fb798..ce2b1f7bb94 100644 --- a/src/gallium/state_trackers/egl/common/egl_g3d.c +++ b/src/gallium/state_trackers/egl/common/egl_g3d.c @@ -65,8 +65,8 @@ egl_g3d_get_platform(_EGLDriver *drv, _EGLPlatformType plat) break; case _EGL_PLATFORM_DRM: plat_name = "DRM"; -#ifdef HAVE_KMS_BACKEND - nplat = native_get_kms_platform(); +#ifdef HAVE_DRM_BACKEND + nplat = native_get_drm_platform(); #endif break; case _EGL_PLATFORM_FBDEV: diff --git a/src/gallium/state_trackers/egl/common/native.h b/src/gallium/state_trackers/egl/common/native.h index 9f34c517ef8..3c3f57e2670 100644 --- a/src/gallium/state_trackers/egl/common/native.h +++ b/src/gallium/state_trackers/egl/common/native.h @@ -227,7 +227,7 @@ const struct native_platform * native_get_x11_platform(void); const struct native_platform * -native_get_kms_platform(void); +native_get_drm_platform(void); const struct native_platform * native_get_fbdev_platform(void); diff --git a/src/gallium/state_trackers/egl/kms/modeset.c b/src/gallium/state_trackers/egl/drm/modeset.c index 9473a0e5f4c..5d6a07e2fdd 100644 --- a/src/gallium/state_trackers/egl/kms/modeset.c +++ b/src/gallium/state_trackers/egl/drm/modeset.c @@ -30,7 +30,7 @@ #include "util/u_inlines.h" #include "egllog.h" -#include "native_kms.h" +#include "native_drm.h" static boolean kms_surface_validate(struct native_surface *nsurf, uint attachment_mask, diff --git a/src/gallium/state_trackers/egl/kms/native_kms.c b/src/gallium/state_trackers/egl/drm/native_drm.c index 94880c36965..8ffdde66ba8 100644 --- a/src/gallium/state_trackers/egl/kms/native_kms.c +++ b/src/gallium/state_trackers/egl/drm/native_drm.c @@ -30,7 +30,7 @@ #include "util/u_memory.h" #include "egllog.h" -#include "native_kms.h" +#include "native_drm.h" /* see get_drm_screen_name */ #include <radeon_drm.h> @@ -228,13 +228,13 @@ native_create_display(void *dpy, struct native_event_handler *event_handler, return kms_create_display(fd, event_handler, user_data); } -static const struct native_platform kms_platform = { - "KMS", /* name */ +static const struct native_platform drm_platform = { + "DRM", /* name */ native_create_display }; const struct native_platform * -native_get_kms_platform(void) +native_get_drm_platform(void) { - return &kms_platform; + return &drm_platform; } diff --git a/src/gallium/state_trackers/egl/kms/native_kms.h b/src/gallium/state_trackers/egl/drm/native_drm.h index 3a9b1a67887..3a9b1a67887 100644 --- a/src/gallium/state_trackers/egl/kms/native_kms.h +++ b/src/gallium/state_trackers/egl/drm/native_drm.h |