From: Marek Olšák Date: Thu, 10 Nov 2011 22:55:49 +0000 (+0100) Subject: r600g: don't set the query result to 0 after a call to get_query_result X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8428e63353373e769a9ba787875b49fdd25a1ee;p=mesa.git r600g: don't set the query result to 0 after a call to get_query_result get_query_result doesn't reset the result. Only begin_query does. --- diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw_context.c index c51016738bd..52e0be7d5e2 100644 --- a/src/gallium/drivers/r600/r600_hw_context.c +++ b/src/gallium/drivers/r600/r600_hw_context.c @@ -1849,8 +1849,6 @@ boolean r600_context_query_result(struct r600_context *ctx, default: assert(0); } - - memset(&query->result, 0, sizeof(query->result)); return TRUE; }