anv: Update PIPELINE_CONTROL flush when switching pipeline mode in TGL+
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 3 Jan 2023 17:40:54 +0000 (09:40 -0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 9 Jan 2023 14:40:26 +0000 (14:40 +0000)
commit1067ec90a591b26a0d6c9b298b1a894bb0a66836
tree8c6ae09bfab0d8e9aef4c398ad91b845ed9bf006
parent172e0b0ebffa02fa86aa6a1915979fb4de9460bb
anv: Update PIPELINE_CONTROL flush when switching pipeline mode in TGL+

This 2 PIPELINE_CONTROL flushes are not necessary for TGL and newer
and also it have different requirements of flush, so here doing
this two changes at the same time.

As no ANV_PIPE_INVALIDATE_BITS is set as parameter of
anv_add_pending_pipe_bits(),
genX(cmd_buffer_apply_pipe_flushes)(cmd_buffer) will only emit one
PIPELINE_CONTROL.

BSpec: 44505
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20501>
src/intel/vulkan/genX_cmd_buffer.c