radv: do not always initialize HTILE in compressed state
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 28 Mar 2019 15:03:03 +0000 (16:03 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 29 Mar 2019 07:28:18 +0000 (08:28 +0100)
commit62a9d757e6074215c145c9637014d9acb16d865d
treed354e9869b7ee252f0de54cf1c13491d7b631954
parent3fee3d1319768e6304edbe71296d68eeba973685
radv: do not always initialize HTILE in compressed state

Especially when performing a transtion from UNDEFINED->GENERAL,
the driver shouldn't initialize HTILE metadata in compressed
state because it doesn't decompress when the src layout is
GENERAL.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110259
Fixes: 3a2e93147f7 ("radv: always initialize HTILE when the src layout is UNDEFINED")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c