From a1780925fb461c736bae7e51de0d3a1e909548f2 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Tue, 22 Apr 2003 11:31:55 +0000 Subject: Move a chunk of gamma-specific code out of drm_dma.h. Remove unused 'DRM_FLAG_NOCTX' option. --- linux-core/drm_context.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'linux-core/drm_context.c') diff --git a/linux-core/drm_context.c b/linux-core/drm_context.c index 646b2236..b446956c 100644 --- a/linux-core/drm_context.c +++ b/linux-core/drm_context.c @@ -36,6 +36,11 @@ #define __NO_VERSION__ #include "drmP.h" +#if !__HAVE_CTX_BITMAP +#error "__HAVE_CTX_BITMAP must be defined" +#endif + + /* ================================================================ * Context bitmap support */ @@ -235,10 +240,6 @@ int DRM(context_switch)( drm_device_t *dev, int old, int new ) return 0; } - if ( DRM(flags) & DRM_FLAG_NOCTX ) { - DRM(context_switch_complete)( dev, new ); - } - return 0; } -- cgit v1.2.3