svga: remove unneeded casts in get_query_result_vgpu9() calls
authorBrian Paul <brianp@vmware.com>
Fri, 27 May 2016 00:58:16 +0000 (18:58 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 27 May 2016 16:01:12 +0000 (10:01 -0600)
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_pipe_query.c

index c1bd8ec3a0d992313716495f32f16952565f2dbd..4febf9bd51082cde6b5ac1050fa46b7e4fce5b04 100644 (file)
@@ -1078,7 +1078,7 @@ svga_get_query_result(struct pipe_context *pipe,
                                        (void *)&occResult, sizeof(occResult));
          *result = (uint64_t)occResult.samplesRendered;
       } else {
-         ret = get_query_result_vgpu9(svga, sq, wait, (uint64_t *)result);
+         ret = get_query_result_vgpu9(svga, sq, wait, result);
       }
       break;
    case PIPE_QUERY_OCCLUSION_PREDICATE: {
@@ -1089,7 +1089,7 @@ svga_get_query_result(struct pipe_context *pipe,
          vresult->b = occResult.anySamplesRendered != 0;
       } else {
          uint64_t count;
-         ret = get_query_result_vgpu9(svga, sq, wait, (uint64_t *)&count);
+         ret = get_query_result_vgpu9(svga, sq, wait, &count);
          vresult->b = count != 0;
       }
       break;