r300g: Fix queries on big endian hosts.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com>
This commit is contained in:
committed by
Michel Dänzer
parent
4a3be16fd2
commit
0be1f79770
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user