Module: Mesa
Branch: main
Commit: e918509284a7d1ae8339be0f7432cf5345a63bb7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e918509284a7d1ae8339be0f7432cf5345a63bb7

Author: Alyssa Rosenzweig <[email protected]>
Date:   Thu Mar  2 10:05:16 2023 -0500

ail: Handle larger block sizes

We need to support up to 16 bytes/sample * 4 samples/pixel = 64 bytes/pixel for
multisampling to work with formats like RGBA32F.

Fixes dEQP-GLES3.functional.fbo.msaa.4_samples.rgba32f

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22971>

---

 src/asahi/layout/layout.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/asahi/layout/layout.c b/src/asahi/layout/layout.c
index 4facd2cc463..0ae7ef74ab7 100644
--- a/src/asahi/layout/layout.c
+++ b/src/asahi/layout/layout.c
@@ -56,6 +56,8 @@ ail_get_max_tile_size(unsigned blocksize_B)
    case  4: return (struct ail_tile) {  64,  64 };
    case  8: return (struct ail_tile) {  64,  32 };
    case 16: return (struct ail_tile) {  32,  32 };
+   case 32: return (struct ail_tile) {  32,  16 };
+   case 64: return (struct ail_tile) {  16,  16 };
    default: unreachable("Invalid blocksize");
    }
    /* clang-format on */

Reply via email to