Mesa (master): softpipe: fix an obvious copy-paste error in get_query_result

Marek Olšák mareko at kemper.freedesktop.org
Tue Aug 16 17:58:06 UTC 2011


Module: Mesa
Branch: master
Commit: 9e8f556b199a662c5525b9d03f52a067244fa602
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9e8f556b199a662c5525b9d03f52a067244fa602

Author: Marek Olšák <maraeo at gmail.com>
Date:   Tue Aug 16 19:06:55 2011 +0200

softpipe: fix an obvious copy-paste error in get_query_result

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/drivers/softpipe/sp_query.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_query.c b/src/gallium/drivers/softpipe/sp_query.c
index 4ae69c1..88f4257 100644
--- a/src/gallium/drivers/softpipe/sp_query.c
+++ b/src/gallium/drivers/softpipe/sp_query.c
@@ -157,7 +157,7 @@ softpipe_get_query_result(struct pipe_context *pipe,
       /*os_get_time is in microseconds*/
       td.frequency = 1000000;
       td.disjoint = FALSE;
-      memcpy(vresult, &sq->so,
+      memcpy(vresult, &td,
              sizeof(struct pipe_query_data_timestamp_disjoint));
    }
       break;




More information about the mesa-commit mailing list