Skip to content

Commit

Permalink
radv: disable DCC for dst transfer.
Browse files Browse the repository at this point in the history
When we end up doing subresolves we end up doing it into a place
with dcc enabled, this fails horribly.

Just disable DCC on dst transfer for now.

Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
airlied committed Apr 26, 2017
1 parent dd6298c commit bb0a048
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/amd/vulkan/radv_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ radv_init_surface(struct radv_device *device,
surface->flags |= RADEON_SURF_HAS_TILE_MODE_INDEX;

if ((pCreateInfo->usage & (VK_IMAGE_USAGE_TRANSFER_SRC_BIT |
VK_IMAGE_USAGE_TRANSFER_DST_BIT |
VK_IMAGE_USAGE_STORAGE_BIT)) ||
(pCreateInfo->flags & VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT) ||
(pCreateInfo->tiling == VK_IMAGE_TILING_LINEAR) ||
Expand Down

0 comments on commit bb0a048

Please sign in to comment.