mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
r300g: cleanup render_condition a bit
This commit is contained in:
parent
70b86fb273
commit
d18792f93d
1 changed files with 3 additions and 5 deletions
|
|
@ -156,17 +156,15 @@ static void r300_render_condition(struct pipe_context *pipe,
|
|||
uint64_t result = 0;
|
||||
boolean wait;
|
||||
|
||||
r300->skip_rendering = FALSE;
|
||||
|
||||
if (query) {
|
||||
wait = mode == PIPE_RENDER_COND_WAIT ||
|
||||
mode == PIPE_RENDER_COND_BY_REGION_WAIT;
|
||||
|
||||
if (!r300_get_query_result(pipe, query, wait, &result)) {
|
||||
r300->skip_rendering = FALSE;
|
||||
} else {
|
||||
if (r300_get_query_result(pipe, query, wait, &result)) {
|
||||
r300->skip_rendering = result == 0;
|
||||
}
|
||||
} else {
|
||||
r300->skip_rendering = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue