projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e41e575
)
radv: do not enable DCC for mipmapped arrays because performance is worse
author
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Mon, 1 Jul 2019 14:31:00 +0000
(16:31 +0200)
committer
Samuel Pitoiset
<samuel.pitoiset@gmail.com>
Tue, 2 Jul 2019 07:38:00 +0000
(09:38 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_image.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_image.c
b/src/amd/vulkan/radv_image.c
index 4099c57aa8528f1230809d32cdaa14f33eabfaf5..07d89d32edfaaee37a8e2f939acb3deccf1303c3 100644
(file)
--- 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;