diff options
author | Marek Olšák <[email protected]> | 2012-03-27 22:42:30 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-03-30 17:12:51 +0200 |
commit | 4445e170bee23a3607ece0e010adef7058ac6a11 (patch) | |
tree | ce86b5413bc465bbbdb221b4b96bfcfd9e4ad385 /src/gallium/drivers/nvfx | |
parent | 102ed41ae6287f9f43708d10f3952c3c5b887c45 (diff) |
gallium: adapt to get_query_result interface change
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nvfx')
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_query.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_query.c b/src/gallium/drivers/nvfx/nvfx_query.c index 3cd6bf1e477..76fb715b830 100644 --- a/src/gallium/drivers/nvfx/nvfx_query.c +++ b/src/gallium/drivers/nvfx/nvfx_query.c @@ -59,14 +59,14 @@ nvfx_query_begin(struct pipe_context *pipe, struct pipe_query *pq) * the existing query to notify completion, but it could be better. */ if (q->object) - pipe->get_query_result(pipe, pq, 1, &tmp); + pipe->get_query_result(pipe, pq, 1, (void*)&tmp); while (nouveau_resource_alloc(nvfx->screen->query_heap, 1, NULL, &q->object)) { struct nvfx_query* oldestq; assert(!LIST_IS_EMPTY(&nvfx->screen->query_list)); oldestq = LIST_ENTRY(struct nvfx_query, nvfx->screen->query_list.next, list); - pipe->get_query_result(pipe, (struct pipe_query*)oldestq, 1, &tmp); + pipe->get_query_result(pipe, (struct pipe_query*)oldestq, 1, (void*)&tmp); } LIST_ADDTAIL(&q->list, &nvfx->screen->query_list); @@ -105,7 +105,7 @@ nvfx_query_end(struct pipe_context *pipe, struct pipe_query *pq) static boolean nvfx_query_result(struct pipe_context *pipe, struct pipe_query *pq, - boolean wait, void *vresult) + boolean wait, union pipe_query_result *vresult) { uint64_t *result = (uint64_t *)vresult; struct nvfx_context *nvfx = nvfx_context(pipe); |