mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
radv: Don't allocate CMASK for linear images.
We can't use it anyway in fast clears, and on GFX9 it seems to
actually hange the card if we specify it.
Fixes: f4e499ec79 "radv: add initial non-conformant radv vulkan driver"
This commit is contained in:
parent
bee83b2661
commit
1a172fb113
1 changed files with 3 additions and 1 deletions
|
|
@ -839,8 +839,10 @@ radv_image_create(VkDevice _device,
|
|||
|
||||
if ((pCreateInfo->usage & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) &&
|
||||
pCreateInfo->mipLevels == 1 &&
|
||||
!image->surface.dcc_size && image->info.depth == 1 && can_cmask_dcc)
|
||||
!image->surface.dcc_size && image->info.depth == 1 && can_cmask_dcc &&
|
||||
!image->surface.is_linear)
|
||||
radv_image_alloc_cmask(device, image);
|
||||
|
||||
if (image->info.samples > 1 && vk_format_is_color(pCreateInfo->format)) {
|
||||
radv_image_alloc_fmask(device, image);
|
||||
} else if (vk_format_is_depth(pCreateInfo->format)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue