/[packages]/cauldron/mesa/current/SOURCES/0018-radv-Use-correct-image-view-comparison-for-fast-clea.patch
ViewVC logotype

Contents of /cauldron/mesa/current/SOURCES/0018-radv-Use-correct-image-view-comparison-for-fast-clea.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1379265 - (show annotations) (download)
Wed Mar 20 17:08:42 2019 UTC (3 months ago) by tmb
File size: 1269 byte(s)
more fixes from staging/19.0 branch
1 From da17740ea77b41dee715c0cf2141cc7d22c29593 Mon Sep 17 00:00:00 2001
2 From: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
3 Date: Mon, 18 Mar 2019 22:20:40 +0100
4 Subject: [PATCH 18/24] radv: Use correct image view comparison for fast
5 clears.
6
7 The if is actually returning true on success, enabling fast clears, so we
8 need to have the test succeed when the iview dimensions are right.
9
10 Fixes: d5400a5ec2a "radv: provide a helper for comparing an image extents."
11 Reviewed-by: Dave Airlie <airlied@redhat.com>
12 (cherry picked from commit a777c3d7cb0a89f6c63a637e6db32cc1bf33b54c)
13 ---
14 src/amd/vulkan/radv_meta_clear.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c
18 index 140e14c95e0..32af736fd8f 100644
19 --- a/src/amd/vulkan/radv_meta_clear.c
20 +++ b/src/amd/vulkan/radv_meta_clear.c
21 @@ -651,7 +651,7 @@ static bool depth_view_can_fast_clear(struct radv_cmd_buffer *cmd_buffer,
22 iview->base_mip == 0 &&
23 iview->base_layer == 0 &&
24 radv_layout_is_htile_compressed(iview->image, layout, queue_mask) &&
25 - !radv_image_extent_compare(iview->image, &iview->extent))
26 + radv_image_extent_compare(iview->image, &iview->extent))
27 return true;
28 return false;
29 }
30 --
31 2.21.0
32

  ViewVC Help
Powered by ViewVC 1.1.26