projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a3be16
)
r300g: Fix queries on big endian hosts.
author
Michel Dänzer
<michel.daenzer@amd.com>
Wed, 2 Nov 2011 15:39:17 +0000
(16:39 +0100)
committer
Michel Dänzer
<michel@daenzer.net>
Wed, 2 Nov 2011 17:59:30 +0000
(18:59 +0100)
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com>
src/gallium/drivers/r300/r300_query.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_query.c
b/src/gallium/drivers/r300/r300_query.c
index 9e784b5fecfb716b0841f525b4e95a8a93902fad..55ec66deb722af6811f1d4bb92790001901a9dd6 100644
(file)
--- a/
src/gallium/drivers/r300/r300_query.c
+++ b/
src/gallium/drivers/r300/r300_query.c
@@
-132,7
+132,8
@@
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;
+ /* Convert little endian values written by GPU to CPU byte order */
+ temp += util_le32_to_cpu(*map);
map++;
}