diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2014-09-24 15:24:25 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2014-09-26 21:15:55 +0800 |
commit | e3451552d23b7b656bafde5c4cf63e86b87137f0 (patch) | |
tree | b74b9f3694e23cf3d33a5123b3a19ef6aa20060e /src/gallium/drivers/ilo/ilo_draw.c | |
parent | ce2bda300d00bf4fa92b287ff257f7c5fd17e81e (diff) | |
download | external_mesa3d-e3451552d23b7b656bafde5c4cf63e86b87137f0.zip external_mesa3d-e3451552d23b7b656bafde5c4cf63e86b87137f0.tar.gz external_mesa3d-e3451552d23b7b656bafde5c4cf63e86b87137f0.tar.bz2 |
ilo: simplify ilo_render invalidation
ilo_render is based on ilo_builder. We should only care if the builder
buffers are invalidated, or if the hardware context is invalidated. Replace
ilo_render_invalidate() with flags by ilo_render_invalidate_builder() and
ilo_render_invalidate_hw().
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_draw.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_draw.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/ilo/ilo_draw.c b/src/gallium/drivers/ilo/ilo_draw.c index 39a29c2f..780a753 100644 --- a/src/gallium/drivers/ilo/ilo_draw.c +++ b/src/gallium/drivers/ilo/ilo_draw.c @@ -362,8 +362,6 @@ draw_vbo(struct ilo_context *ilo, const struct ilo_state_vector *vec) break; } - ilo->render->invalidate_flags = 0x0; - /* sanity check size estimation */ assert(before_space - ilo_cp_space(ilo->cp) <= max_len); @@ -438,7 +436,7 @@ ilo_draw_rectlist(struct ilo_context *ilo) break; } - ilo_render_invalidate(ilo->render, ILO_RENDER_INVALIDATE_HW); + ilo_render_invalidate_hw(ilo->render); ilo_render_emit_flush(ilo->render); |