radv: disable HTILE for very small depth surfaces
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 28 Sep 2018 14:28:50 +0000 (16:28 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 1 Oct 2018 08:16:33 +0000 (10:16 +0200)
commitdc91c4d40acaf5a8ea72e9c0c25eceafc89e9c42
tree3b40f4195354dea386d578cbd17445bb59a59ef6
parent6cfa321c393e7e15488ce9e01a5ba9f1bc3f6c6d
radv: disable HTILE for very small depth surfaces

Like we disable DCC/CMASK for small color surfaces as well.
Serious Sam 2017 creates a 1x1 depth surface and I think
it should be faster to do slow clears on the graphics queue
instead of fast clears on compute, and eventually a depth
expand if the surface isn't TC-compatible HTILE.

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