From 42f526b5ca90317dd751a772105f30e8151b8613 Mon Sep 17 00:00:00 2001 From: Daryll Strauss Date: Sun, 9 Apr 2000 17:29:28 +0000 Subject: [PATCH] Only enable DRI for 16bpp mode. Allow GL_BLEND if color is 0,0,0,1 Wrap grTexLodBiasValue call Link math library into libGL Recognize Napalm boards Allow CLUT/gamma changes Make driver compile on 2.2.14 kernel --- linux/fops.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/linux/fops.c b/linux/fops.c index 2a064e5d..1c1a3584 100644 --- a/linux/fops.c +++ b/linux/fops.c @@ -211,10 +211,11 @@ int drm_write_string(drm_device_t *dev, const char *s) send -= count; } -#if LINUX_VERSION_CODE < 0x020315 +#if LINUX_VERSION_CODE < 0x02020e || \ + ( LINUX_VERSION_CODE > 0x020300 && LINUX_VERSION_CODE < 0x020315 ) if (dev->buf_async) kill_fasync(dev->buf_async, SIGIO); #else - /* Parameter added in 2.3.21 */ + /* Parameter added in 2.2.14 and 2.3.21 */ if (dev->buf_async) kill_fasync(dev->buf_async, SIGIO, POLL_IN); #endif DRM_DEBUG("waking\n");