lima: track write submits of context (v3)
authorQiang Yu <yuq825@gmail.com>
Thu, 6 Feb 2020 12:02:31 +0000 (20:02 +0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 17 Feb 2020 02:54:15 +0000 (02:54 +0000)
commitc64994433c0da03d1dabf7cf561f1f1474d6554f
treeab28971b2b1d47974f80d5f82d970b85e0235d4c
parent48fc5f841ae9c5b294d9084a274f49045c0dbae5
lima: track write submits of context (v3)

We need to flush submit which write to the FBO before read it as
texture.

v2:
rename lima_flush_previous_write_submit to
lima_flush_previous_submit_writing_resouce.

v3:
delay add submit to hash_table to lima_update_submit_wb when really
know the render target will be written.

Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3755>
src/gallium/drivers/lima/lima_context.h
src/gallium/drivers/lima/lima_draw.c
src/gallium/drivers/lima/lima_submit.c
src/gallium/drivers/lima/lima_texture.c