lima: implement invalidate_resource()
authorVasily Khoruzhick <anarsoul@gmail.com>
Thu, 5 Dec 2019 03:27:43 +0000 (19:27 -0800)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Jan 2020 01:26:23 +0000 (01:26 +0000)
commit60f9b45802ca6f6f0c11dcbf1a056b7291c8adc9
tree129933f6d7ad24bd7eacf1520d544ed1b939d80e
parentbf830250a70d71acec83df0063a81c4b54713e46
lima: implement invalidate_resource()

We don't need to resolve invalidated resources, so it should
improve performance for applications that are doing this hint.

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