softpipe: Use p_atomic_read, not atomic_read.
authorMichal Krol <michal@vmware.com>
Mon, 16 Mar 2009 11:22:50 +0000 (12:22 +0100)
committerMichal Krol <michal@vmware.com>
Mon, 16 Mar 2009 11:22:50 +0000 (12:22 +0100)
src/gallium/drivers/softpipe/sp_texture.c

index ade18b2333235c814bf3641e51d8eec4feb2e613..48b2c22af45bb0c1585444d74d47f7c80fbef63f 100644 (file)
@@ -138,7 +138,7 @@ softpipe_texture_create(struct pipe_screen *screen,
          goto fail;
    }
     
-   assert(atomic_read(&spt->base.reference.count) == 1);
+   assert(p_atomic_read(&spt->base.reference.count) == 1);
    return &spt->base;
 
  fail: