we don't use this stuff anymore .. remove 1k buffer from driver ..
authorDave Airlie <airlied@linux.ie>
Sun, 23 Oct 2005 04:07:50 +0000 (04:07 +0000)
committerDave Airlie <airlied@linux.ie>
Sun, 23 Oct 2005 04:07:50 +0000 (04:07 +0000)
linux-core/drmP.h
linux-core/drm_fops.c

index bb1ed2a..2836713 100644 (file)
 #define DRM_KERNEL_CONTEXT    0         /**< Change drm_resctx if changed */
 #define DRM_RESERVED_CONTEXTS 1         /**< Change drm_resctx if changed */
 #define DRM_LOOPING_LIMIT     5000000
-#define DRM_BSZ                      1024 /**< Buffer size for /dev/drm? output */
 #define DRM_TIME_SLICE       (HZ/20)  /**< Time slice for GLXContexts */
 #define DRM_LOCK_SLICE       1 /**< Time slice for lock, in jiffies */
 
@@ -713,10 +712,6 @@ typedef struct drm_device {
        cycles_t ctx_start;
        cycles_t lck_start;
 
-       char buf[DRM_BSZ];              /**< Output buffer */
-       char *buf_rp;                   /**< Read pointer */
-       char *buf_wp;                   /**< Write pointer */
-       char *buf_end;                  /**< End pointer */
        struct fasync_struct *buf_async;/**< Processes waiting for SIGIO */
        wait_queue_head_t buf_readers;  /**< Processes waiting to read */
        wait_queue_head_t buf_writers;  /**< Processes waiting to ctx switch */
index 60da7ae..c79372d 100644 (file)
@@ -99,9 +99,6 @@ static int drm_setup(drm_device_t * dev)
        dev->ctx_start = 0;
        dev->lck_start = 0;
 
-       dev->buf_rp = dev->buf;
-       dev->buf_wp = dev->buf;
-       dev->buf_end = dev->buf + DRM_BSZ;
        dev->buf_async = NULL;
        init_waitqueue_head(&dev->buf_readers);
        init_waitqueue_head(&dev->buf_writers);