lima: don't reload and redraw tiles that were not updated
authorVasily Khoruzhick <anarsoul@gmail.com>
Thu, 10 Oct 2019 02:23:54 +0000 (19:23 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Sun, 5 Jan 2020 08:16:36 +0000 (00:16 -0800)
commit4f5bfe2a5e252f1f7ae047949d645918f374e07c
tree5457c5a029d2dad6b0cec58959c8e996941996d9
parent83abdf8e4518a40dc0c74f7c85d7e9a6d76ce7a5
lima: don't reload and redraw tiles that were not updated

We don't need to reload and redraw some tiles if framebuffer was not
cleared and scissor test was enabled for some of draws. This simple
optimization fixes cursor lag in X11

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/lima_context.c
src/gallium/drivers/lima/lima_context.h
src/gallium/drivers/lima/lima_draw.c