radv/gfx10: invalidate everything in L2 when shaders read data
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 12 Jul 2019 11:59:08 +0000 (13:59 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 12 Jul 2019 12:08:12 +0000 (14:08 +0200)
commit37aefb2be1e72e3be8aec8a0a74517ae683c48b8
tree5af68356547d56888571f3d6fff4d76ae0a92210
parent4e38322dd83b8d3a7a107dabacf86739497db420
radv/gfx10: invalidate everything in L2 when shaders read data

This includes metadata as well. On GFX10, we have to invalidate
the L2 metadata cache when shaders read DCC.

Note that we still have to implement GFX10 coherency by
introducing INV_L2_METATADA but for now just flush L2.

This fixes a corruption with DCC and Talos.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c