Mesa (master): softpipe: Use p_atomic_read, not atomic_read.

Michał Król michal at kemper.freedesktop.org
Mon Mar 16 04:23:15 PDT 2009


Module: Mesa
Branch: master
Commit: 47c18b35b0346e6b456dae4a883fcc743811ef8e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=47c18b35b0346e6b456dae4a883fcc743811ef8e

Author: Michal Krol <michal at vmware.com>
Date:   Mon Mar 16 12:22:50 2009 +0100

softpipe: Use p_atomic_read, not atomic_read.

---

 src/gallium/drivers/softpipe/sp_texture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c
index ade18b2..48b2c22 100644
--- a/src/gallium/drivers/softpipe/sp_texture.c
+++ b/src/gallium/drivers/softpipe/sp_texture.c
@@ -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:



More information about the mesa-commit mailing list