gallium: Replace uint64 by standard uint64_t.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 8 Jan 2009 12:41:45 +0000 (12:41 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 8 Jan 2009 12:41:45 +0000 (12:41 +0000)
uint64 is not (so?) standard, and often redefined by third parties,
causing name clashes.

src/gallium/drivers/nv30/nv30_query.c
src/gallium/drivers/nv30/nv30_state_emit.c
src/gallium/drivers/nv40/nv40_query.c
src/gallium/drivers/nv40/nv40_state_emit.c
src/gallium/drivers/nv50/nv50_query.c
src/gallium/drivers/softpipe/sp_context.h
src/gallium/drivers/softpipe/sp_query.c
src/gallium/drivers/trace/tr_context.c
src/gallium/include/pipe/p_compiler.h
src/gallium/include/pipe/p_context.h

index d40d75f264021d1344fbd41d1eb2f32a08de299b..2f974cf5c4047685b635f9a944f6045fb23142de 100644 (file)
@@ -50,7 +50,7 @@ nv30_query_begin(struct pipe_context *pipe, struct pipe_query *pq)
         * the existing query to notify completion, but it could be better.
         */
        if (q->object) {
-               uint64 tmp;
+               uint64_t tmp;
                pipe->get_query_result(pipe, pq, 1, &tmp);
        }
 
@@ -80,7 +80,7 @@ nv30_query_end(struct pipe_context *pipe, struct pipe_query *pq)
 
 static boolean
 nv30_query_result(struct pipe_context *pipe, struct pipe_query *pq,
-                 boolean wait, uint64 *result)
+                 boolean wait, uint64_t *result)
 {
        struct nv30_context *nv30 = nv30_context(pipe);
        struct nv30_query *q = nv30_query(pq);
index 40fed621b24037062bc1b0858eb0f73af9bea877..9480695d6e57b1a147286cf3c84a16d306b81d5c 100644 (file)
@@ -49,7 +49,7 @@ nv30_state_emit(struct nv30_context *nv30)
        struct nv30_state *state = &nv30->state;
        struct nv30_screen *screen = nv30->screen;
        unsigned i, samplers;
-       uint64 states;
+       uint64_t states;
 
        if (nv30->pctx_id != screen->cur_pctx) {
                for (i = 0; i < NV30_STATE_MAX; i++) {
index 57f39cfab0cbfe8e343b876beb9a90a95bf16c62..9b9a43f49dffa5aec0b0d45eaba41b0d1c206ee0 100644 (file)
@@ -50,7 +50,7 @@ nv40_query_begin(struct pipe_context *pipe, struct pipe_query *pq)
         * the existing query to notify completion, but it could be better.
         */
        if (q->object) {
-               uint64 tmp;
+               uint64_t tmp;
                pipe->get_query_result(pipe, pq, 1, &tmp);
        }
 
@@ -80,7 +80,7 @@ nv40_query_end(struct pipe_context *pipe, struct pipe_query *pq)
 
 static boolean
 nv40_query_result(struct pipe_context *pipe, struct pipe_query *pq,
-                 boolean wait, uint64 *result)
+                 boolean wait, uint64_t *result)
 {
        struct nv40_context *nv40 = nv40_context(pipe);
        struct nv40_query *q = nv40_query(pq);
index ab88dc416e5d54c6c76d823bc9411600ea5405ef..52ec4c044b4c9d0be1e5bfdfe7f7092c33825e12 100644 (file)
@@ -65,7 +65,7 @@ nv40_state_emit(struct nv40_context *nv40)
        struct nv40_state *state = &nv40->state;
        struct nv40_screen *screen = nv40->screen;
        unsigned i, samplers;
-       uint64 states;
+       uint64_t states;
 
        if (nv40->pctx_id != screen->cur_pctx) {
                for (i = 0; i < NV40_STATE_MAX; i++) {
index 26bd90ccc5e2f2bda2274ac0021900c07e8200f7..777e77906d5a380996dca49f174596b13460d8cb 100644 (file)
@@ -51,7 +51,7 @@ nv50_query_end(struct pipe_context *pipe, struct pipe_query *q)
 
 static boolean
 nv50_query_result(struct pipe_context *pipe, struct pipe_query *q,
-                 boolean wait, uint64 *result)
+                 boolean wait, uint64_t *result)
 {
        NOUVEAU_ERR("unimplemented\n");
        *result = 0xdeadcafe;
index 7ab12a6d7024c352b5dd2f3548e80ad2d84eee9b..e2451c6ecb58ea1d000dee701b63428ecbabb5d6 100644 (file)
@@ -94,7 +94,7 @@ struct softpipe_context {
    /* Counter for occlusion queries.  Note this supports overlapping
     * queries.
     */
-   uint64 occlusion_count;
+   uint64_t occlusion_count;
 
    /*
     * Mapped vertex buffers
index 2106ee1d235e7a982bdc071b1e7ba4dfe5dc3d53..b0d8e01426d185087b2d28b61bbe9b2eb74f51d2 100644 (file)
@@ -37,8 +37,8 @@
 #include "sp_query.h"
 
 struct softpipe_query {
-   uint64 start;
-   uint64 end;
+   uint64_t start;
+   uint64_t end;
 };
 
 
@@ -87,7 +87,7 @@ static boolean
 softpipe_get_query_result(struct pipe_context *pipe, 
                          struct pipe_query *q,
                          boolean wait,
-                         uint64 *result )
+                         uint64_t *result )
 {
    struct softpipe_query *sq = softpipe_query(q);
    *result = sq->end - sq->start;
index 1dd77193791621aadcd0a8dc1ea2aa7ea8fbf5d8..f0d51ad82ef3a335123c1fcce913e69f21f987db 100644 (file)
@@ -274,11 +274,11 @@ static INLINE boolean
 trace_context_get_query_result(struct pipe_context *_pipe, 
                                struct pipe_query *query,
                                boolean wait,
-                               uint64 *presult)
+                               uint64_t *presult)
 {
    struct trace_context *tr_ctx = trace_context(_pipe);
    struct pipe_context *pipe = tr_ctx->pipe;
-   uint64 result;
+   uint64_t result;
    boolean _result;
 
    trace_dump_call_begin("pipe_context", "get_query_result");
index 02a075d384343148bf770561e18848ba75f90a27..bc2a0a7ef3ae278f0121c3859c43b8cda734c7a3 100644 (file)
@@ -96,7 +96,6 @@ typedef int     _Bool;
 typedef unsigned int       uint;
 typedef unsigned char      ubyte;
 typedef unsigned short     ushort;
-typedef uint64_t           uint64;
 
 #if 0
 #define boolean bool
index 2646706ff239ace09aefb94799cfe4c9ac2227fe..166c6b6b7e0b6f0f47ecbf7af0534c19501e05e2 100644 (file)
@@ -109,7 +109,7 @@ struct pipe_context {
    boolean (*get_query_result)(struct pipe_context *pipe, 
                                struct pipe_query *q,
                                boolean wait,
-                               uint64 *result);
+                               uint64_t *result);
    /*@}*/
 
    /**