diff options
Diffstat (limited to 'src/amd/vulkan/radv_cmd_buffer.c')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 1f3fdd1abd0..fc8184200fc 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -4968,11 +4968,13 @@ void radv_initialize_dcc(struct radv_cmd_buffer *cmd_buffer, for (unsigned i = 0; i < image->planes[0].surface.num_dcc_levels; i++) { struct legacy_surf_level *surf_level = &image->planes[0].surface.u.legacy.level[i]; + unsigned dcc_fast_clear_size = + surf_level->dcc_slice_fast_clear_size * image->info.array_size; - if (!surf_level->dcc_fast_clear_size) + if (!dcc_fast_clear_size) break; - size = surf_level->dcc_offset + surf_level->dcc_fast_clear_size; + size = surf_level->dcc_offset + dcc_fast_clear_size; } /* Initialize the mipmap levels without DCC. */ |