v3dv: add an 'always flush' mode
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 18 Mar 2020 09:00:31 +0000 (10:00 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:28 +0000 (21:21 +0000)
commit761b0c02f8625e1eb0e045242fcf59bf988c1956
treedc5279a90027093e260047837990d81126dc0cce
parentebbd326472893f141069d55b3cffa57ddf032268
v3dv: add an 'always flush' mode

In this mode, which can be activated with V3D_DEBUG=always_flush like
in the GL driver, we flush every draw call separately. For now this
is useful for debugging, but we can also set the flag internally on
specific jobs when we identify scenarios where we need the same behavior.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/vulkan/v3dv_cmd_buffer.c
src/broadcom/vulkan/v3dv_private.h