gallium: Replace uint64 by standard uint64_t.
uint64 is not (so?) standard, and often redefined by third parties, causing name clashes.
This commit is contained in:
@@ -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.
|
* the existing query to notify completion, but it could be better.
|
||||||
*/
|
*/
|
||||||
if (q->object) {
|
if (q->object) {
|
||||||
uint64 tmp;
|
uint64_t tmp;
|
||||||
pipe->get_query_result(pipe, pq, 1, &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
|
static boolean
|
||||||
nv30_query_result(struct pipe_context *pipe, struct pipe_query *pq,
|
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_context *nv30 = nv30_context(pipe);
|
||||||
struct nv30_query *q = nv30_query(pq);
|
struct nv30_query *q = nv30_query(pq);
|
||||||
|
@@ -49,7 +49,7 @@ nv30_state_emit(struct nv30_context *nv30)
|
|||||||
struct nv30_state *state = &nv30->state;
|
struct nv30_state *state = &nv30->state;
|
||||||
struct nv30_screen *screen = nv30->screen;
|
struct nv30_screen *screen = nv30->screen;
|
||||||
unsigned i, samplers;
|
unsigned i, samplers;
|
||||||
uint64 states;
|
uint64_t states;
|
||||||
|
|
||||||
if (nv30->pctx_id != screen->cur_pctx) {
|
if (nv30->pctx_id != screen->cur_pctx) {
|
||||||
for (i = 0; i < NV30_STATE_MAX; i++) {
|
for (i = 0; i < NV30_STATE_MAX; i++) {
|
||||||
|
@@ -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.
|
* the existing query to notify completion, but it could be better.
|
||||||
*/
|
*/
|
||||||
if (q->object) {
|
if (q->object) {
|
||||||
uint64 tmp;
|
uint64_t tmp;
|
||||||
pipe->get_query_result(pipe, pq, 1, &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
|
static boolean
|
||||||
nv40_query_result(struct pipe_context *pipe, struct pipe_query *pq,
|
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_context *nv40 = nv40_context(pipe);
|
||||||
struct nv40_query *q = nv40_query(pq);
|
struct nv40_query *q = nv40_query(pq);
|
||||||
|
@@ -65,7 +65,7 @@ nv40_state_emit(struct nv40_context *nv40)
|
|||||||
struct nv40_state *state = &nv40->state;
|
struct nv40_state *state = &nv40->state;
|
||||||
struct nv40_screen *screen = nv40->screen;
|
struct nv40_screen *screen = nv40->screen;
|
||||||
unsigned i, samplers;
|
unsigned i, samplers;
|
||||||
uint64 states;
|
uint64_t states;
|
||||||
|
|
||||||
if (nv40->pctx_id != screen->cur_pctx) {
|
if (nv40->pctx_id != screen->cur_pctx) {
|
||||||
for (i = 0; i < NV40_STATE_MAX; i++) {
|
for (i = 0; i < NV40_STATE_MAX; i++) {
|
||||||
|
@@ -51,7 +51,7 @@ nv50_query_end(struct pipe_context *pipe, struct pipe_query *q)
|
|||||||
|
|
||||||
static boolean
|
static boolean
|
||||||
nv50_query_result(struct pipe_context *pipe, struct pipe_query *q,
|
nv50_query_result(struct pipe_context *pipe, struct pipe_query *q,
|
||||||
boolean wait, uint64 *result)
|
boolean wait, uint64_t *result)
|
||||||
{
|
{
|
||||||
NOUVEAU_ERR("unimplemented\n");
|
NOUVEAU_ERR("unimplemented\n");
|
||||||
*result = 0xdeadcafe;
|
*result = 0xdeadcafe;
|
||||||
|
@@ -94,7 +94,7 @@ struct softpipe_context {
|
|||||||
/* Counter for occlusion queries. Note this supports overlapping
|
/* Counter for occlusion queries. Note this supports overlapping
|
||||||
* queries.
|
* queries.
|
||||||
*/
|
*/
|
||||||
uint64 occlusion_count;
|
uint64_t occlusion_count;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Mapped vertex buffers
|
* Mapped vertex buffers
|
||||||
|
@@ -37,8 +37,8 @@
|
|||||||
#include "sp_query.h"
|
#include "sp_query.h"
|
||||||
|
|
||||||
struct softpipe_query {
|
struct softpipe_query {
|
||||||
uint64 start;
|
uint64_t start;
|
||||||
uint64 end;
|
uint64_t end;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -87,7 +87,7 @@ static boolean
|
|||||||
softpipe_get_query_result(struct pipe_context *pipe,
|
softpipe_get_query_result(struct pipe_context *pipe,
|
||||||
struct pipe_query *q,
|
struct pipe_query *q,
|
||||||
boolean wait,
|
boolean wait,
|
||||||
uint64 *result )
|
uint64_t *result )
|
||||||
{
|
{
|
||||||
struct softpipe_query *sq = softpipe_query(q);
|
struct softpipe_query *sq = softpipe_query(q);
|
||||||
*result = sq->end - sq->start;
|
*result = sq->end - sq->start;
|
||||||
|
@@ -274,11 +274,11 @@ static INLINE boolean
|
|||||||
trace_context_get_query_result(struct pipe_context *_pipe,
|
trace_context_get_query_result(struct pipe_context *_pipe,
|
||||||
struct pipe_query *query,
|
struct pipe_query *query,
|
||||||
boolean wait,
|
boolean wait,
|
||||||
uint64 *presult)
|
uint64_t *presult)
|
||||||
{
|
{
|
||||||
struct trace_context *tr_ctx = trace_context(_pipe);
|
struct trace_context *tr_ctx = trace_context(_pipe);
|
||||||
struct pipe_context *pipe = tr_ctx->pipe;
|
struct pipe_context *pipe = tr_ctx->pipe;
|
||||||
uint64 result;
|
uint64_t result;
|
||||||
boolean _result;
|
boolean _result;
|
||||||
|
|
||||||
trace_dump_call_begin("pipe_context", "get_query_result");
|
trace_dump_call_begin("pipe_context", "get_query_result");
|
||||||
|
@@ -96,7 +96,6 @@ typedef int _Bool;
|
|||||||
typedef unsigned int uint;
|
typedef unsigned int uint;
|
||||||
typedef unsigned char ubyte;
|
typedef unsigned char ubyte;
|
||||||
typedef unsigned short ushort;
|
typedef unsigned short ushort;
|
||||||
typedef uint64_t uint64;
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
#define boolean bool
|
#define boolean bool
|
||||||
|
@@ -109,7 +109,7 @@ struct pipe_context {
|
|||||||
boolean (*get_query_result)(struct pipe_context *pipe,
|
boolean (*get_query_result)(struct pipe_context *pipe,
|
||||||
struct pipe_query *q,
|
struct pipe_query *q,
|
||||||
boolean wait,
|
boolean wait,
|
||||||
uint64 *result);
|
uint64_t *result);
|
||||||
/*@}*/
|
/*@}*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user