[Mesa-dev] [PATCH 2/2] svga: remove unneeded casts in get_query_result_vgpu9() calls
Charmaine Lee
charmainel at vmware.com
Fri May 27 01:15:05 UTC 2016
Looks good.
Reviewed-by: Charmaine Lee <charmainel at vmware.com>
________________________________________
From: Brian Paul <brianp at vmware.com>
Sent: Thursday, May 26, 2016 5:59 PM
To: mesa-dev at lists.freedesktop.org
Cc: Charmaine Lee
Subject: [PATCH 2/2] svga: remove unneeded casts in get_query_result_vgpu9() calls
---
src/gallium/drivers/svga/svga_pipe_query.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/svga/svga_pipe_query.c b/src/gallium/drivers/svga/svga_pipe_query.c
index c1bd8ec..4febf9b 100644
--- a/src/gallium/drivers/svga/svga_pipe_query.c
+++ b/src/gallium/drivers/svga/svga_pipe_query.c
@@ -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;
--
1.9.1
More information about the mesa-dev
mailing list