mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 23:18:05 +02:00
Enable DD_TRI_OFFSET and DD_TRI_LIGHT_TWOSIDE support Points/lines are not
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>
This commit is contained in:
parent
baf435c4af
commit
e0ec09d908
1 changed files with 7 additions and 0 deletions
|
|
@ -255,6 +255,7 @@ int drm_agp_free(struct inode *inode, struct file *filp, unsigned int cmd,
|
|||
-EFAULT);
|
||||
if (!(entry = drm_agp_lookup_entry(dev, request.handle)))
|
||||
return -EINVAL;
|
||||
#if 0
|
||||
#if 0
|
||||
if (entry->bound) drm_unbind_agp(entry->memory);
|
||||
#endif
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue