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

Author: Asahi Lina <[email protected]>
Date:   Sat Mar  4 02:56:54 2023 +0900

asahi: Assert on TIB strides > 64

These just don't seem to work. macOS falls back to eMRT here...

dEQP-GLES3.functional.draw_buffers_indexed.random.max_implementation_draw_buffers.13
from Fail -> Crash. Proper solution will come when we implement eMRT later on.

Signed-off-by: Asahi Lina <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21705>

---

 src/asahi/lib/agx_tilebuffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/asahi/lib/agx_tilebuffer.c b/src/asahi/lib/agx_tilebuffer.c
index 0c724881833..ba9558cfb37 100644
--- a/src/asahi/lib/agx_tilebuffer.c
+++ b/src/asahi/lib/agx_tilebuffer.c
@@ -65,7 +65,7 @@ agx_build_tilebuffer_layout(enum pipe_format *formats, 
uint8_t nr_cbufs,
       offset_B += size_B;
    }
 
-   assert(offset_B <= 128 && "should fit in uint8");
+   assert(offset_B <= 64 && "TIB strides must be <= 64");
    tib.sample_size_B = ALIGN_POT(offset_B, 8);
 
    tib.tile_size = agx_select_tile_size(tib.sample_size_B * nr_samples);

Reply via email to