nouveau: fix RAMHT wrapping

main
Maurice van der Pot 2007-06-04 10:49:30 +10:00 committed by Ben Skeggs
parent a05d4fecd3
commit 4327d7f314
1 changed files with 1 additions and 1 deletions

View File

@ -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)) { while (NV_READ(ht_base + ofs) || NV_READ(ht_base + ofs + 4)) {
ofs += 8; ofs += 8;
if (ofs == ht_end) ofs = ht_base; if (ofs == dev_priv->ramht_size) ofs = 0;
if (ofs == o_ofs) { if (ofs == o_ofs) {
DRM_ERROR("no free hash table entries\n"); DRM_ERROR("no free hash table entries\n");
return 1; return 1;