[Mesa-dev] [PATCH 2/2] r300g: Fix queries on big endian hosts.
Michel Dänzer
michel at daenzer.net
Wed Nov 2 10:26:23 PDT 2011
From: Michel Dänzer <michel.daenzer at amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/gallium/drivers/r300/r300_query.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/r300/r300_query.c b/src/gallium/drivers/r300/r300_query.c
index 9e784b5..b92410f 100644
--- a/src/gallium/drivers/r300/r300_query.c
+++ b/src/gallium/drivers/r300/r300_query.c
@@ -132,7 +132,7 @@ static boolean r300_get_query_result(struct pipe_context* pipe,
/* Sum up the results. */
temp = 0;
for (i = 0; i < q->num_results; i++) {
- temp += *map;
+ temp += util_le32_to_cpu(*map);
map++;
}
--
1.7.7.1
More information about the mesa-dev
mailing list