r600g: Made radeon_bo::map_count signed.
authorTilman Sauerbeck <tilman@code-monkey.de>
Fri, 29 Oct 2010 17:30:57 +0000 (19:30 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Tue, 2 Nov 2010 20:52:39 +0000 (21:52 +0100)
That way assert(map_count >= 0) can actually fail when we screwed up.

Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
src/gallium/winsys/r600/drm/r600_priv.h

index 117d0597ad51b211664e6dee6d18c1d7515312f2..efecfebc2b17e984e52070d3eab9df617b0f5cd9 100644 (file)
@@ -62,7 +62,7 @@ struct radeon_bo {
        unsigned                        handle;
        unsigned                        size;
        unsigned                        alignment;
-       unsigned                        map_count;
+       int                             map_count;
        void                            *data;
        struct list_head                fencedlist;
        unsigned                        fence;