diff options
author | Samuel Pitoiset <[email protected]> | 2019-06-18 10:30:43 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-06-18 11:24:36 +0200 |
commit | 864ddda8a3c392a354aecc6653ade54c34333133 (patch) | |
tree | 25dd09ff3713b37785e853cf831e0b1ae8035f7a /src/amd/vulkan/radv_device.c | |
parent | 79a30543eea529c22492067ff57bce8bb88ab83e (diff) |
radv: check if DCC is enabled per mip not for the whole image
In other words, make use of radv_dcc_enabled() instead of
radv_image_has_dcc() all over the places.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_device.c')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 487b75491d1..1424eaef21d 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -4202,7 +4202,7 @@ radv_init_dcc_control_reg(struct radv_device *device, unsigned max_compressed_block_size; unsigned independent_64b_blocks; - if (!radv_image_has_dcc(iview->image)) + if (!radv_dcc_enabled(iview->image, iview->base_mip)) return 0; if (iview->image->info.samples > 1) { |