mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
radv: do not decompress levels without DCC with the compute path
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
864ddda8a3
commit
e8917dcadb
1 changed files with 5 additions and 0 deletions
|
|
@ -801,6 +801,11 @@ radv_decompress_dcc_compute(struct radv_cmd_buffer *cmd_buffer,
|
|||
device->meta_state.fast_clear_flush.dcc_decompress_compute_pipeline);
|
||||
|
||||
for (uint32_t l = 0; l < radv_get_levelCount(image, subresourceRange); l++) {
|
||||
|
||||
/* Do not decompress levels without DCC. */
|
||||
if (!radv_dcc_enabled(image, subresourceRange->baseMipLevel + l))
|
||||
continue;
|
||||
|
||||
radv_image_view_init(&iview, cmd_buffer->device,
|
||||
&(VkImageViewCreateInfo) {
|
||||
.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue