radv: Really use correct HTILE expanded words.
authorJames Legg <jlegg@feralinteractive.com>
Thu, 22 Feb 2018 16:57:53 +0000 (16:57 +0000)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 24 Feb 2018 01:16:22 +0000 (02:16 +0100)
commitafd8fd0656a8eb3a2ce892381387aad3c6b0a78f
treec001d59d7c6600e949620464c2214c89dccfb40f
parent8eed9421367d3a5576cb4b924d5004a1f976a418
radv: Really use correct HTILE expanded words.

When transitioning to an htile compressed depth format, Set the full
depth range, so later rasterization can pass HiZ. Previously, for depth
only formats, the depth range was set to 0 to 0. This caused unwanted
HiZ rejections with a VK_FORMAT_D16_UNORM depth buffer
(VK_FORMAT_D32_SFLOAT was not affected somehow).

These values are derived from PAL [0], since I can't find the
specification describing the htile values.

[0] https://github.com/GPUOpen-Drivers/pal/blob/5cba4ecbda9452773f59692f5915301e7db4a183/src/core/hw/gfxip/gfx9/gfx9MaskRam.cpp#L1500

CC: Dave Airlie <airlied@redhat.com>
CC: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
CC: mesa-stable@lists.freedesktop.org
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Fixes: 5158603182fe7435 "radv: Use correct HTILE expanded words."
src/amd/vulkan/radv_cmd_buffer.c