summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/dri/nouveau
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-05-25 14:26:18 +1000
committerBen Skeggs <[email protected]>2008-05-25 14:26:18 +1000
commit8f67f98959261d193cb5f3db274b55fb24e2bb1e (patch)
treed54eeccacd4775217c59e0b11456e96d3d015031 /src/gallium/winsys/dri/nouveau
parentf5599a7a3c4a6335ce79fdbd82e18f08bb0ac8e7 (diff)
nouveau: missed PCI case
Diffstat (limited to 'src/gallium/winsys/dri/nouveau')
-rw-r--r--src/gallium/winsys/dri/nouveau/nouveau_bo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/winsys/dri/nouveau/nouveau_bo.c b/src/gallium/winsys/dri/nouveau/nouveau_bo.c
index 792eaaa79e5..aca16a8b127 100644
--- a/src/gallium/winsys/dri/nouveau/nouveau_bo.c
+++ b/src/gallium/winsys/dri/nouveau/nouveau_bo.c
@@ -310,7 +310,8 @@ nouveau_bo_set_status(struct nouveau_bo *bo, uint32_t flags)
/* Check current memtype vs requested, if they match do nothing */
if ((nvbo->drm.flags & NOUVEAU_MEM_FB) && (flags & NOUVEAU_BO_VRAM))
return 0;
- if ((nvbo->drm.flags & NOUVEAU_MEM_AGP) && (flags & NOUVEAU_BO_GART))
+ if ((nvbo->drm.flags & (NOUVEAU_MEM_AGP | NOUVEAU_MEM_PCI)) &&
+ (flags & NOUVEAU_BO_GART))
return 0;
if (nvbo->drm.size == 0 && nvbo->sysmem && (flags & NOUVEAU_BO_LOCAL))
return 0;