diff options
author | Samuel Pitoiset <[email protected]> | 2019-06-03 17:52:56 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-06-04 08:55:32 +0200 |
commit | 8a35eb0602735194f2976000ddff9dca2c8b5741 (patch) | |
tree | 9a6403d2ef8ff75213e27e924718b4571f9cf8ef /src/amd/vulkan/radv_meta_clear.c | |
parent | 33f4e04d5a7396886f0b2ea6463d295ea038f8c5 (diff) |
radv: do not use gfx fast depth clears for layered depth/stencil images
The driver should only fast depth clears with the graphics path
when the view covers all image layers, otherwise this might
corrupt layers when HTILE is enabled.
Cc: 19.0 19.1 [email protected]
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta_clear.c')
-rw-r--r-- | src/amd/vulkan/radv_meta_clear.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c index 313e80d5cb7..44aaf92f53d 100644 --- a/src/amd/vulkan/radv_meta_clear.c +++ b/src/amd/vulkan/radv_meta_clear.c @@ -650,6 +650,7 @@ static bool depth_view_can_fast_clear(struct radv_cmd_buffer *cmd_buffer, if (radv_image_has_htile(iview->image) && iview->base_mip == 0 && iview->base_layer == 0 && + iview->layer_count == iview->image->info.array_size && radv_layout_is_htile_compressed(iview->image, layout, queue_mask) && radv_image_extent_compare(iview->image, &iview->extent)) return true; |