OSDN Git Service

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 ade18b2..48b2c22 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: