Displaying 1 result from an estimated 1 matches for "512bc1e".
2010 Jan 17
0
[PATCH] libdrm/nouveau: Support nested bo mapping
...nouveau_bo(bo);
+ if(--nvbo->map_count)
+ return 0;
+
if (bo->map && !nvbo->sysmem) {
struct nouveau_device_priv *nvdev = nouveau_device(bo->device);
struct drm_nouveau_gem_cpu_fini req;
diff --git a/nouveau/nouveau_private.h b/nouveau/nouveau_private.h
index 39758d1..512bc1e 100644
--- a/nouveau/nouveau_private.h
+++ b/nouveau/nouveau_private.h
@@ -115,6 +115,7 @@ struct nouveau_bo_priv {
drm_handle_t handle;
uint64_t map_handle;
void *map;
+ unsigned map_count;
/* Last known information from kernel on buffer status */
int pinned;
--
1.6.3.3