diff options
author | Jonathan Marek <[email protected]> | 2019-10-14 12:46:37 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-10-15 07:56:20 -0400 |
commit | f1efc9a1c89e3b8f1b5faad4238035ebe8a8f217 (patch) | |
tree | 8277392eb89589e706ec93e6a361d2c1506188bb /src/freedreno/vulkan/tu_image.c | |
parent | d3c9914152248a0e98d0a1dcde1f71e7bd9f2b7c (diff) |
turnip: basic msaa working
Not perfect but gets through some tests.
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/freedreno/vulkan/tu_image.c')
-rw-r--r-- | src/freedreno/vulkan/tu_image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_image.c b/src/freedreno/vulkan/tu_image.c index 50bd1dbbb19..6c774de9f53 100644 --- a/src/freedreno/vulkan/tu_image.c +++ b/src/freedreno/vulkan/tu_image.c @@ -335,7 +335,7 @@ tu_image_view_init(struct tu_image_view *iview, A6XX_TEX_CONST_0_TILE_MODE(tile_mode) | COND(vk_format_is_srgb(iview->vk_format), A6XX_TEX_CONST_0_SRGB) | A6XX_TEX_CONST_0_FMT(fmt->tex) | - A6XX_TEX_CONST_0_SAMPLES(0) | + A6XX_TEX_CONST_0_SAMPLES(tu_msaa_samples(image->samples)) | A6XX_TEX_CONST_0_SWAP(image->tile_mode ? WZYX : fmt->swap) | tu6_texswiz(&pCreateInfo->components, vk_format_description(iview->vk_format)->swizzle) | A6XX_TEX_CONST_0_MIPLVLS(iview->level_count - 1); |