mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-03 10:40:34 +02:00
r300g/swtcl: avoid an infinite loop if an occl. query doesn't return anything
This commit is contained in:
parent
6a143b8424
commit
49244df5a8
1 changed files with 6 additions and 2 deletions
|
|
@ -146,9 +146,13 @@ static boolean r300_get_query_result(struct pipe_context* pipe,
|
|||
/* Looks like our results aren't ready yet. */
|
||||
if (wait) {
|
||||
fprintf(stderr, "r300: Despite waiting, OQ results haven't "
|
||||
"come in yet.\n");
|
||||
"come in yet. This is a driver bug.\n"
|
||||
"r300: Returning bogus results to avoid "
|
||||
"a possible infinite loop...\n");
|
||||
temp = 987654321;
|
||||
} else {
|
||||
temp = ~0U;
|
||||
}
|
||||
temp = ~0U;
|
||||
break;
|
||||
}
|
||||
temp += *map;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue