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)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 28 Mar 2017 00:51:40 +0000 (02:51 +0200)
commita8c51b1cd9168b621e27cf5308d0dd8fc08f8a4a
tree3ab993da332da464e97d2058fad7182741b4345c
parentf5c32b07628a6ee186f130f0510bfcdafc6ce36e
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")
src/amd/vulkan/radv_cmd_buffer.c