radv: only enable TC-compat HTILE for images readable by a shader
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 31 Mar 2020 08:35:00 +0000 (10:35 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 9 Apr 2020 11:55:59 +0000 (11:55 +0000)
commit4de84c8cbd6f6fe46703a3a8d5283460bbeb50fc
tree2545d2a385c413b3873ad1d74059d658aaee0f18
parent63f07a30477d3a8cb80e8344c8315a4eb0b4a8a5
radv: only enable TC-compat HTILE for images readable by a shader

If no texture fetches happen it's useless to enable TC-compat HTILE.

Because the driver currently doesn't support TC-compat HTILE for
storage images we don't have to check.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4497>
src/amd/vulkan/radv_image.c