radv: Refactor cache flush code for the initial preambles.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 5 May 2022 18:04:46 +0000 (20:04 +0200)
committerTimur Kristóf <timur.kristof@gmail.com>
Tue, 10 May 2022 08:19:34 +0000 (10:19 +0200)
commit86821329c705c9fd7c323c53f8ad3f2e40081302
tree0bce06365b5490004580c5956be7825df601d010
parentd83213ec58086e4cb99c3524ecc90533779435ed
radv: Refactor cache flush code for the initial preambles.

The "initial" and "initial full flush" preambles both need a
cache flush with a slight difference. Improve the readability of
this code.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-By: Tatsuyuki Ishi <ishitatsuyuki@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16358>
src/amd/vulkan/radv_device.c