mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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:
parent
f60e81ecb2
commit
b95767a57a
1 changed files with 2 additions and 1 deletions
|
|
@ -138,7 +138,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++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue