diff options
author | Samuel Pitoiset <[email protected]> | 2019-07-01 16:31:00 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-07-02 09:38:00 +0200 |
commit | 233224c7f7c2dcd609f6832265fbe9fede58dae4 (patch) | |
tree | 1c671bc017c0abb891146a95e29f6b729e3f0c57 | |
parent | e41e575e24757227579a7190a5cff211ca65ed0b (diff) |
radv: do not enable DCC for mipmapped arrays because performance is worse
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r-- | src/amd/vulkan/radv_image.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 4099c57aa85..07d89d32edf 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -179,6 +179,10 @@ radv_use_dcc_for_image(struct radv_device *device, if (pCreateInfo->arrayLayers > 1) return false; + /* Do not enable DCC for mipmapped arrays because performance is worse. */ + if (pCreateInfo->arrayLayers > 1 && pCreateInfo->mipLevels > 1) + return false; + if (radv_surface_has_scanout(device, create_info)) return false; |