projects
/
profile
/
ivi
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a05d4fe
)
nouveau: fix RAMHT wrapping
author
Maurice van der Pot
<griffon26@kfk4ever.com>
Mon, 4 Jun 2007 00:49:30 +0000
(10:49 +1000)
committer
Ben Skeggs
<skeggsb@gmail.com>
Mon, 4 Jun 2007 00:49:30 +0000
(10:49 +1000)
shared-core/nouveau_object.c
patch
|
blob
|
history
diff --git
a/shared-core/nouveau_object.c
b/shared-core/nouveau_object.c
index
ace7c2a
..
e36568c
100644
(file)
--- a/
shared-core/nouveau_object.c
+++ b/
shared-core/nouveau_object.c
@@
-167,7
+167,7
@@
nouveau_ht_object_insert(drm_device_t* dev, int channel, uint32_t handle,
while (NV_READ(ht_base + ofs) || NV_READ(ht_base + ofs + 4)) {
ofs += 8;
- if (ofs ==
ht_end) ofs = ht_base
;
+ if (ofs ==
dev_priv->ramht_size) ofs = 0
;
if (ofs == o_ofs) {
DRM_ERROR("no free hash table entries\n");
return 1;