OSDN Git Service

radv: flush DB cache before and after HTILE decompress.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 27 Mar 2017 23:48:15 +0000 (01:48 +0200)
committerAndres Gomez <agomez@igalia.com>
Wed, 29 Mar 2017 16:13:22 +0000 (19:13 +0300)
commit45e133ab3bc0d182e5a2a8ebd4db725499c8ab09
tree5612beb2ce3934a9c9f850c968646b174a5e1ae1
parent6613fba2a961155a2a0f9c6c6cd0bca10c8bcbc6
radv: flush DB cache before and after HTILE decompress.

It reads @ writes the DB cache, and we haven't flushed dst caches yet,
so DB cache may be stale. Also the user might be shader read (and probably is),
so also flush after.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
CC: <mesa-stable@lists.freedesktop.org>
Fixes: f4e499ec791 ("radv: add initial non-conformant radv vulkan driver")
(cherry picked from commit a8c51b1cd9168b621e27cf5308d0dd8fc08f8a4a)
[Andres Gomez: resolve trivial conflicts]
Signed-off-by: Andres Gomez <agomez@igalia.com>
Conflicts:
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_cmd_buffer.c