diff options
author | Nicolai Hähnle <[email protected]> | 2017-05-10 22:20:37 +0200 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-06-05 10:43:56 +1000 |
commit | 34b7fb47b603638480183d095303cfd66b824d0b (patch) | |
tree | d72b1500d8ddc90f2b4b2ef03f1052524ed4f3da /src/amd/vulkan/radv_image.c | |
parent | 59f72e158aa0349085ef25900eb1651aa67ec67f (diff) |
radv: remove radeon_surf_level::dcc_enabled
Like radeonsi; replace with radeon_surf::num_dcc_levels.
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_image.c')
-rw-r--r-- | src/amd/vulkan/radv_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index a1598fcbb7b..842f2919ca9 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -212,7 +212,7 @@ si_set_mutable_tex_desc_fields(struct radv_device *device, is_stencil)); state[4] |= S_008F20_PITCH_GFX6(pitch - 1); - if (image->surface.dcc_size && image->surface.level[first_level].dcc_enabled) { + if (image->surface.dcc_size && first_level < image->surface.num_dcc_levels) { state[6] |= S_008F28_COMPRESSION_EN(1); state[7] = (gpu_address + image->dcc_offset + |