radv: always initialize HTILE when the src layout is UNDEFINED
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 14 Mar 2019 13:27:03 +0000 (14:27 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 14 Mar 2019 16:22:23 +0000 (17:22 +0100)
commit3a2e93147f7fa4a6fd17313353113a33291c5ce0
treefcba9c308f35a5259acb67e0046890a3d6dff476
parent27b0661e30a8217dd94623b13232fd62a943b1eb
radv: always initialize HTILE when the src layout is UNDEFINED

HTILE should always be initialized when transitioning from
VK_IMAGE_LAYOUT_UNDEFINED to other image layouts. Otherwise,
if an app does a transition from UNDEFINED to GENERAL, the
driver doesn't initialize HTILE and it tries to decompress
the depth surface. For some reasons, this results in VM faults.

Cc: mesa-stable@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107563
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c