summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin E Martin <kem@kem.org>2000-03-21 16:53:02 +0000
committerKevin E Martin <kem@kem.org>2000-03-21 16:53:02 +0000
commite0ec09d9087b8c9ad95f3600207ebc90f816bcf1 (patch)
tree921786496ba8486db80ebe6bda5ec63c11576503
parentbaf435c4af839e35da43b6cb485fcb80fdf25d62 (diff)
Enable DD_TRI_OFFSET and DD_TRI_LIGHT_TWOSIDE support Points/lines are notati-4-0-1-alpha
yet supported, so use software rendering for them Enable front/back/depth buffer initialization in r128 ddx driver Applied patch for AGP from Rik Faith <faith@precisioninsight.com>
-rw-r--r--linux/agpsupport.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/agpsupport.c b/linux/agpsupport.c
index d60edc2e..e5793d81 100644
--- a/linux/agpsupport.c
+++ b/linux/agpsupport.c
@@ -256,6 +256,7 @@ int drm_agp_free(struct inode *inode, struct file *filp, unsigned int cmd,
if (!(entry = drm_agp_lookup_entry(dev, request.handle)))
return -EINVAL;
#if 0
+#if 0
if (entry->bound) drm_unbind_agp(entry->memory);
#endif
if(entry->prev) entry->prev->next = entry->next;
@@ -264,6 +265,12 @@ int drm_agp_free(struct inode *inode, struct file *filp, unsigned int cmd,
(entry->prev == NULL)) {
dev->agp->memory = NULL;
}
+#else
+ if (entry->bound) drm_unbind_agp(entry->memory);
+ if (entry->prev) entry->prev->next = entry->next;
+ else dev->agp->memory = entry->next;
+ if (entry->next) entry->next->prev = entry->prev;
+#endif
drm_free_agp(entry->memory, entry->pages);
drm_free(entry, sizeof(*entry), DRM_MEM_AGPLISTS);
return 0;