diff options
author | Jonathan Marek <[email protected]> | 2019-12-12 17:03:26 -0500 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-12-12 20:33:17 -0500 |
commit | 27d2174508da12a80d24e8abb956615e7286c202 (patch) | |
tree | c15685e3326208cf4e2615cc025ad1eedc8d5b53 /src/freedreno/vulkan | |
parent | 5fd9fd35164cc3b3284579fcb37c4ba575076ca4 (diff) |
turnip: no 8x msaa on 128bpp formats
We don't have an entry for cpp 128 in the tile_alignment table, but I don't
think the HW supports this at all (blob driver just doesn't have 8x msaa).
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/freedreno/vulkan')
-rw-r--r-- | src/freedreno/vulkan/tu_formats.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/freedreno/vulkan/tu_formats.c b/src/freedreno/vulkan/tu_formats.c index 120672cf0a9..4f8833cf586 100644 --- a/src/freedreno/vulkan/tu_formats.c +++ b/src/freedreno/vulkan/tu_formats.c @@ -868,8 +868,10 @@ tu_get_image_format_properties( VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT)) && !(info->flags & VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT) && !(info->usage & VK_IMAGE_USAGE_STORAGE_BIT)) { - sampleCounts |= VK_SAMPLE_COUNT_2_BIT | VK_SAMPLE_COUNT_4_BIT | - VK_SAMPLE_COUNT_8_BIT; + sampleCounts |= VK_SAMPLE_COUNT_2_BIT | VK_SAMPLE_COUNT_4_BIT; + /* 8x MSAA on 128bpp formats doesn't seem to work */ + if (vk_format_get_blocksize(info->format) <= 8) + sampleCounts |= VK_SAMPLE_COUNT_8_BIT; } if (info->usage & VK_IMAGE_USAGE_SAMPLED_BIT) { |