From 5a4b28e77caa1c33a5ca7bf05100a78a2fd70f0d Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Fri, 3 Jan 2025 14:56:21 +0100 Subject: [PATCH] tu: Handle 8x MSAA for LRZ Fixes: be9f2e5189b022f773c90cee4763026a46da9205 ("tu/a7xx: support 8x MSAA") Signed-off-by: Danylo Piliaiev Part-of: --- src/freedreno/vulkan/tu_image.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedreno/vulkan/tu_image.cc b/src/freedreno/vulkan/tu_image.cc index 8c28078193d..a8f634b0d36 100644 --- a/src/freedreno/vulkan/tu_image.cc +++ b/src/freedreno/vulkan/tu_image.cc @@ -580,6 +580,9 @@ tu_image_update_layout(struct tu_device *device, struct tu_image *image, /* LRZ buffer is super-sampled */ switch (layout->nr_samples) { + case 8: + height *= 2; + FALLTHROUGH; case 4: width *= 2; FALLTHROUGH;