gallium: adapt to get_query_result interface change
[mesa.git] / src / gallium / drivers / nvc0 / nvc0_query.c
index 7244d838f7d8594326923cbf9a72a1c2d3efe3a8..699d582fe3d1ec5486cf7b9d9c1a88344d6a5032 100644 (file)
@@ -338,12 +338,12 @@ nvc0_query_wait(struct nvc0_query *q)
 
 static boolean
 nvc0_query_result(struct pipe_context *pipe, struct pipe_query *pq,
-                  boolean wait, void *result)
+                  boolean wait, union pipe_query_result *result)
 {
    struct nvc0_query *q = nvc0_query(pq);
-   uint64_t *res64 = result;
-   uint32_t *res32 = result;
-   boolean *res8 = result;
+   uint64_t *res64 = (uint64_t*)result;
+   uint32_t *res32 = (uint32_t*)result;
+   boolean *res8 = (boolean*)result;
    uint64_t *data64 = (uint64_t *)q->data;
    unsigned i;