diff options
author | Marek Olšák <[email protected]> | 2010-09-10 07:58:07 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-09-13 07:49:43 +0200 |
commit | c3c5646b93eb20013d2739c7966da7ddad532877 (patch) | |
tree | e99ffbf16ed144d8db03607ba481555f802d7671 /src/gallium/drivers/r300/r300_emit.h | |
parent | 317680c6fbb898c56dac523cde756cb892481b97 (diff) |
r300g: skip rendering if CS space validation fails
radeon_cs_space_check flushes the pipe context on failure, retries
the validation, and returns -1 if it fails again. At that point, there is
nothing we can do, so let's skip draw operations instead of getting stuck
in an infinite loop.
This code path ideally should never be hit.
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_emit.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.h b/src/gallium/drivers/r300/r300_emit.h index bae25256346..278dbcb4c7c 100644 --- a/src/gallium/drivers/r300/r300_emit.h +++ b/src/gallium/drivers/r300/r300_emit.h @@ -121,8 +121,8 @@ unsigned r300_get_num_cs_end_dwords(struct r300_context *r300); /* Emit all dirty state. */ void r300_emit_dirty_state(struct r300_context* r300); -void r300_emit_buffer_validate(struct r300_context *r300, - boolean do_validate_vertex_buffers, - struct pipe_resource *index_buffer); +boolean r300_emit_buffer_validate(struct r300_context *r300, + boolean do_validate_vertex_buffers, + struct pipe_resource *index_buffer); #endif /* R300_EMIT_H */ |